Is there a Way of Hiding name before build with active choice reactive parameter? (in this case ID1, ID2 and ID3), I have configured a choice parameter and three active choice reactive parameters to enter some values in case that "values" option is selected. But I don´t want to show them in Jenkins UI if "no values" options is selected.
This is how I have it configured. (Adding just ID1 but the others 2 -ID2 and ID3- are the same)
Related
I have a choice parameter with values say:
A
B
BOTH
In above,
if i select "A", there should be one input box which should appear in the job parameter page to take value for A alone
if i select "B", there should be one input box which should appear in the job parameter page to take value for B alone
if i select "BOTH", there should be two input boxes which should appear in the job parameter page to take value for A & B values.
In the declarative script, i should print the values entered in the input boxes respectively. How to achieve this?
Similar but not the same question was answered here Parameterized Jenkins job with dependent parameter
Here is how you can parameterize your job:
Add an active choices parameter
Add an active choices reactive reference parameter
2.1. and choose Choice Type and Referenced parameters as follows
Implement pipeline script
Build with parameters and enter values into input fields
Here is the build output
in my jenkins job if i enter a ticket number My jenkins job should go to jira and get a list of values. these values should show as a multiselect list option in jenkins. for each value in multiselect list option there should be a editable select list option beside to the each value of the multi-select list option.for example if i have 5multi-select list values there should be 5 select list fields beside each value of the multi-select list option.so for each value of multiselect option there should be editable select field. is it possible? please help me out. i heard by exteded choice plugin i saw the documentation but i am not understanding how to configure it. please help me out.
I have a set of data that is returned as a single JSON blob that deserializes into a map. The keys of the map should back one dropdown, and the values of each key are an array of strings that, when that key is chosen in the first dropdown, populate the second dropdown. Changing the first dropdown should repopulate the second with the new set of values corresponding to the array that is the value of the new key.
['foo': ['bar','baz'], 'zoo': ['rab','zab']]
The above data should have one dropdown with 'foo' and 'zoo' as choices. When 'foo' is chosen, the other dropdown should have 'bar' and 'baz'. If 'zoo' is chosen, the other dropdown should change to 'rab' and 'zab'.
I don't want to make the API call more than once as it's not a cheap call, but I am having trouble figuring out if it's possible to back two controls with a single map... I know that I can use reactive controls to make one change based on the value in another dynamically, but not how to have both looking at one data structure.
Either I'm missing something silly, or it's not possible. I'm not sure which it is.
I’m using Extended Choice Parameters named Tasks in a job and the parameter type is Multi Select ( for example with these values: Start, Go, End), now how can I access the selected options ?
Meaning I want to create conditional step with Boolean condition so in case Start option was selected do X and another one in case Go option was selected do Y,
The question is what should be the Token of the Conditional step ?
(I prefer not using script in order to get selected values.)
Assuming you are using the Conditional BuildStep plugin, you should be able to use the "Strings Match" condition to setup your conditional steps. See the screenshots below for an example:
If multiple options can be selected, you can still setup the job as describe above. The only thing you need to change is the type of condition. Instead of using String match, use Regular expression match. This way you can run multiple build steps if you have a composite value.
In Jenkins,
Using Extended Choice Parameter plugin, I am creating a Multi-Level single select
the "Name" of the parameter gives value of the second dropdown..
that is ${SITE_SELECTION} contains Message1
How could i get the value of the first dropdown?