-
Improvement
-
Resolution: Fixed
-
Minor
-
Jenkins 2.190.1 Docker based.
JDK 1.8
Active Choices Plug-in 2.2.1
I have a job with an Active Choice Reactive parameter with a Boolean as a Referenced Parameter.
Depending on the position in the job configuration it evaluates the Referenced Parameters or not.
When they are sorted as in the image position1, all works fine. But if the Boolean Parameter is after the Active Choice Reactive parameter, then, the Active Choice Reactive parameter stop working properly.
I guess it has to evaluate the value of the Boolean Parameter, and if it is after the Active Choice Reactive parameter, the Active Choice Reactive parameter considers that the the Referenced Parameters does not exists and stop working.
Thanks a lot in advance.
Indeed this is how the cascade parameter update happens. Any parameter used by an active choice reactive has to be defined upstream. There are some advanced strategies for sharing parameters independent of their sequence in the form (using an in-memory h2 database) but this is beyond the scope of most typical freestyle jobs. We have discussed this with kinow as a future improvement.