Hudson or Jenkins parameters using dynamic options

Is there a plugin or the ability to write some type of JSP or script to allow a parameterized Hudson or Jenkins build to generate dropdown lists dynamically.

For example, if we have one parameterized assembly that works on one of the managed workspaces in Hudson (where we do not want to create a task for the workspace). We create new workspaces daily and want the parameterized assembly to display these workspaces in the drop-down list as a parameter for this task.

It would be nice if I could just insert a JSP script or something that would be executed to return a list of options.

+5
source share
1 answer

The exact behavior you are looking for does not yet exist, as far as I know, but the Extended Choice Parameter plugin .

If this does not work, it will also not be a very complicated plugin for recording. If you want to get hit by writing it yourself, you can take a look at this introduction to the plugin environment and this more complete overview of plugin development (there is much more information than you really need, maybe you just need to expand the advanced selection parameter, since it already has infrastructure).

, Jenkins ( , , , , ), - .

, , script, , - .

+7

All Articles