Jenkins multiple choice options

I am trying to create a task where I need to select multiple values ​​for one parameter. env: dev1, dev2, qa1, qa2, etc. I want to be able to select dev1 and dev2 to update certain values. Is there a way / plugin for Jenkins to handle this?

+8
jenkins
source share
1 answer

An advanced plugin selection option is the way to go. You need to select Extended Choice Parameter from the drop-down list as shown below:

enter image description here

In the Name text box, enter a name. For example, Wednesday. This is the name with which you will access all the values ​​(dev1, dev2, ...) that you select when you run the assembly. Now, in the Simple Parameter Types section, you will see another drop-down menu named Parameter Type . Select Multi Select from this drop-down list. Now, in the Choose Source for Value section, enter the values ​​(dev1, dev2, qa1, qa2, ...) in the Value field. Comma (,) is the default delimiter. See screenshot below:

enter image description here

Once you are done with the above settings, you will need to access the selected parameter in the script (using the variable assigned by Name , as described above) and decide the course of action.

+34
source share

All Articles