Dersen
Dersen

Reputation: 55

Jenkins same parameters on multiple jobs

we have many Jenkins Test Jobs dependening on one library. Every Job has multiple parameters (always identical).

Now the problem is that if we change or add an parameter in the library, we have to touch every single jenkins job configuration.

Is there a way to configure the parameters of multiple jobs in a central place? Like defining the parameters in a file and refering to that? or is there jenkins plugin for that use case?

Thanks,

Marco

Upvotes: 3

Views: 3568

Answers (2)

mahinlma
mahinlma

Reputation: 1248

  1. Use Build Flow plugin

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

  1. Use Multijob Plugin and parameterized plugin

You can pass different parameter by using these plugins

Upvotes: 1

Vitalii Elenhaupt
Vitalii Elenhaupt

Reputation: 7326

You can edit parameters (and much more) of multiple jobs in one place with Configuration Slicing Plugin:

Job Parameters (aka "This build is parameterized") can be configured across multiple jobs at one time through the "Parameters" link. To indicate which parameter you are configuring, note the "JobName[ParameterName]" syntax.

Not sure if this can help if you use some advanced parameters like File parameter, Dynamic parameter etc.

Upvotes: 3

Related Questions