Jenkins – Checking if a string value is set to a parameter

  Check if the value of the variable “GIT_COMMIT_ID” is set, if so, then do a checkout by the hash of the commit, if not, then do a checkout by the name of the branch. The variable “GIT_BRANCH_NAME” is taken from the Active Choice parameter. Jenkinsfile:

AWS Cli – Search EC2 instances by tag and state

  To get the IP addresses of all instances with the “Application” tag and its value “Frontend“, and also filter by state to display information about only those instances that are in the “running” state:   To display the name of instance along with the IP address: