jenkins the definitive guide

(Jeff_L) #1

Figure 10.6. Many different types of parameters are available


10.2.3. More Advanced Parameter Types


Password parameters are, as you would expect, very similar to String parameters, except that they are
displayed as a password field.


There are many cases where you which to present a limited set of parameter options. In a deployment
build, you might want to let the user choose one of a number of target servers. Or you may want to
present a list of supported browsers for a suite of acceptance tests. Choice parameters let you define a set
of values that will be displayed as a drop-down list (see Figure 10.7, “Configuring a Choice parameter”).
You need to provide a list of possible values, one per line, starting with the default value.


Figure 10.7. Configuring a Choice parameter


Boolean parameters are, as you would expect, parameters that take a value of true or false. They
are presented as checkboxes.


Two more exotic parameter types, which behave a little differently to the others, are Run parameters
and File parameters.


Run parameters let you select a particular run (or build) of a given build job (see Figure 10.8,
“Configuring a Run parameter”). The user picks from a list of build run numbers. The URL of the
corresponding build run is stored in the specified parameter.

Free download pdf