Skip to content

Uno Choice Dynamic Choice Parameter

Bruno P. Kinoshita edited this page May 19, 2014 · 1 revision

This parameter is based on the Dynamic Choice Parameter, a job parameter from the Jenkins Dynamic Parameter Plug-in. The parameter is created based on the output of a Groovy script. This script is supposed to return a list, as in the example below:

def fac(n) { n == 0 ? 1 : n * fac(n - 1) }
r = []
for (i in 1..10) {
  r.push(fac(i))
}
return r

There are four supported HTML elements to be used to render these options with this job parameter: Single Select (produces a ), Multi Select (produces a ), Radio Buttons (produces several ) and Check Boxes ().

The Uno-Choice Dynamic Choice Parameter has an additional option to allow users to specify multiple lines selects (i.e.: ). Another difference with the original job parameter, is that this parameter is filterable. If the "Enable filters" option is checked, an extra input box will be displayed allowing users to filter the options.