read data from file and use the data as multiple checkboxes in extended choice parameter in Jenkins -
i have file list of cases able use multiple selection check box in jenkins project.
example: jenkins.properties
case01_successful_connection case02_successful_disconnection case03_unsuccessful_connection ...
the list of cases (in file) can time time bigger or smaller!
so, how can jenkins read cases , create during "build parameters" needed check boxes user can select or not cases?
how should properties file like? plug-in should use achieve this?
use extended choice parameter plugin
- setup new parameter, let's call
mychoice
- select "type"
checkboxes
- choose "delimeter", example
,
- under "choose source value", select
property file
- specify location of property file, has absolute location, not relative.
- specify "property key" that's in property file, example "mychoice_values"
- type following in property file:
mychoice_values=choice1,choice2,choice3
every time "build parameters" invoked, read property file, find line starts mychoice_values
, , present 3 checkboxes called choice1
, choice2
, , choice3
.
if property file changes, new choices presented
Comments
Post a Comment