Dynamic choice in declarative pipeline

16 views
Skip to first unread message

Jes Struck

unread,
May 18, 2018, 7:01:31 AM5/18/18
to jenkins...@googlegroups.com

Hi all,

I currently working on a migrating to Jenkins Declarative Pipeline, and I'm seems to be stuck on a missing feature (or at least i can't find the documentation).

My goal is to have two parameters, where the selection of param-A is used the generate the list of options to param-B, says
param-A: ["equal", "unequal"]
param-B: [1,2,3,4,5,6,7,8,9, ....]

and when i chose equal for param-A, i want to only show options 2,4,6,8... in the drop-down of param-B.

Firstly the parameters{} block only updates the job parameters, after the Job has initialized (I don't know why), and secondly i can't see anyway to do a filter on param-B after param-A has had a select?

I'm running on Jenkins 2.73.3 and Blue Ocean 1.0.0.

I hope, my question is clear, and i hope to hear from you all :)



--
/Jes
Reply all
Reply to author
Forward
0 new messages