Skip to content
tekante edited this page Mar 18, 2012 · 5 revisions

Overview

A Jenkins parameter plugin that allows for two select elements. The second select populates values depending upon the selection made for the first select.

Configuration

After installation of the dynamic parameter plugin a new parameter option will be available when configuring a job in Jenkins.

Dynamic Parameter selection available in Jenkins job config under Add Parameter

Configure the dynamic parameter specifying the name of the environmental variable to set with the value of each selected item, the available values for each select and a description of how the parameters relate to the build. For the second select, control which options are available based on the first select's selection by prefixing values with the first selct value and a colon.

Dynamic parameter configuration screen shot.

The values selected during a build will be available in the parameter names specified in the configuration.

Job configuration showing how dynamic parameter values are available in build steps.

Build

The following screenshots show a dynamic parameter plugin in action using the configuration from the screen shots in the configuration section.

Initial state:

Initial dynamic parameter state, showing parameter names, descriptive text and initial select state.

Second select options based on first select value:

Initial dynamic parameter state, showing second select limited based on first select.

First select options:

Changing first select value

Second select options based on changed first select value:

Adjusted dynamic parameter state, showing second select limited based on adjusted first select.

Clone this wiki locally