-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins LTS 2.401.3
active-choice plugin 2.7
-
-
2.7.2
Hello,
I have a quite complex freestyle project which have 9 active choices element on it. With the previous plugin version: 2.6.5 everything was worked as expected. Here is the controls / variable description:
1) Active Choices Reactive Parameter #1 (Groovy Script)
INPUT: VARIABLE1 (Choice Parameter), VARIABLE2 (Choice Parameter)
OUTPUT: VARIABLE3 (Radio Buttons)
2) Active Choices Reactive Parameter #2 (Groovy Script)
INPUT: VARIABLE1 (Choice Parameter), VARIABLE2 (Choice Parameter), VARIABLE3 (Active Choices Reactive Parameter #1)
OUTPUT: VARIABLE4 (Single Select)
3) Active Choices Reactive Reference Parameter #3 (Groovy Script)
INPUT: VARIABLE1 (Choice Parameter)
OUTPUT: VARIABLE5 (Single Select)
4) Active Choices Reactive Reference Parameter #4 (Groovy Script)
INPUT: VARIABLE1 (Choice Parameter), VARIABLE2 (Choice Parameter), VARIABLE4 (Single Select)
OUTPUT: VARIABLE6 (Formatted HTML: <input name=\"value\" value=\"${dynRefParam}\" class=\"setting-input\" type=\"text\">)
5) Active Choices Reactive Parameter #5 (Groovy Script)
INPUT: VARIABLE7 (Boolean Parameter)
OUTPUT: VARIABLE8 (Multi Select)
6) Active Choices Reactive Parameter #6 (Groovy Script)
INPUT: VARIABLE1 (Choice Parameter), VARIABLE2 (Choice Parameter), VARIABLE3 (Radio Buttons), VARIABLE4 (Single Select)
OUTPUT: VARIABLE9 (Check Boxes)
7) Active Choices Reactive Parameter #7 (Groovy Script)
INPUT: VARIABLE9 (Check Boxes)
OUTPUT: VARIABLE10 (Radio Buttons)
8) Active Choices Reactive Parameter #8 (Groovy Script)
INPUT: VARIABLE1 (Choice Parameter), VARIABLE2 (Choice Parameter), VARIABLE4 (Single Select), VARIABLE7 (Boolean Parameter), VARIABLE10 (Radio Buttons)
OUTPUT: VARIABLE11 (Radio Buttons)
9) Active Choices Reactive Parameter #9 (Groovy Script)
INPUT: VARIABLE2 (Choice Parameter)
OUTPUT: VARIABLE12 (Check Boxes)
where the #7 active choice does not get automatically updated with the correct input parameters. The input parameter: VARIABLE9 contains just 1 element for the specific faulty case
Not all the active choices elements are involved in the decision of the returned value of the #7 element, I just mentioned it to have a complete picture for the task configuration.
Let me known if any more description is required or if I can make some further investigations.
- causes
-
JENKINS-71755 Not able to see parameters
-
- Closed
-
- is duplicated by
-
JENKINS-71778 Active Chloice script failure - sandbox toggle
-
- Closed
-
- links to
[JENKINS-71724] cascaded active choice Radio Boxes does not auto update
Attachment | New: screenshot-1.png [ 60912 ] |
Attachment | New: screenshot-2.png [ 60913 ] |
I had the same issue with cascading Select boxes that had a complex dependency after upgrading to 2.7. I have not gotten around to putting together a simplified test case and making a report, but I did notice that going into the config and saving allowed it to work once, then after that first build the problem would be back. The save caused the config to be updated from 2.65 to 2.7, with some additional elements, but next (successful) build resulted in another config update where the randomName entries were all updated, which I guess breaks the scripts linking all the ActiveChoices to each other.