Jenkins same options at multiple jobs

we have many Jenkins test items depending on one library. Each task has several parameters (always the same).

Now the problem is that if we change or add a parameter to the library, we have to touch each jenkins job configuration.

Is there a way to adjust the settings for multiple jobs in a central location? How do I define parameters in a file and reference it? or is there a jenkins plugin for this use case?

Thank,

Marco

+3


source to share


2 answers


You can edit parameters (and more) from multiple jobs in one place using the Configuration slicer plugin :

Operation parameters (aka "This assembly is parameterized") can be configured for several jobs at a time by clicking the "Parameters" link. Note the "JobName [ParameterName]" syntax to indicate which parameter you are configuring.



Not sure if it can help if you are using some advanced parameters like file parameter, dynamic parameter, etc.

+2


source


You can run the same or multiple jobs many times with different configurations.



  1. Use Multijob Plugin and Parameterized Plugin

You can pass another parameter using these plugins

+1


source







All Articles