Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65009

How can I loop thought Jenkins Extended Choice Parameter

      I have the below Extended Choice Parameter in my Job:

      In case I choose both values, how can I loop thought it in my jenkinsfile?

       

      sh "docker run --rm --net=host -v ${WORKSPACE}:/app/ ${MyImage} --env ${ENV}"

          [JENKINS-65009] How can I loop thought Jenkins Extended Choice Parameter

          Ariel M added a comment -

          Can I use this code?

          str = env.INFRA_ID.split(',')
          for (String values :str)
             sh "echo $values"

          Ariel M added a comment - Can I use this code? str = env.INFRA_ID.split(',') for (String values :str)    sh "echo $values"

            vimil vimil
            arielma Ariel M
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: