I am currently using an Active Choices Reactive Reference Parameter (from Active Choices plugin) in a declarative pipeline script. Reacting to a couple of parameters called BRANCH and FULL_BUILD, it loops through the output of a ‘git’ command and creates a HTML checkbox for each line. Below is the ‘parameters’ part of the pipeline:
Understandably, when I query the value of this parameter (MODULE_LIST) in the pipeline steps themselves, I get back something like ‘true,true,false,false,false,false,true’ (depending on which boxes I have checked).
Anybody have any suggestions as to the best way of going about this?
Thanks for your reply.
I have used your suggestion and created a hidden html input box alongside the checkbox i.e.
html += '<input type="checkbox" name="value" ’ + chk + ‘>’ + it + ‘<input type="hidden" name="value" value="’ + it + ‘">’
As you say, when you then retrieve this parameter, it can simply be split on ,