Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reuse Build Parameters across multiple Jenkins jobs?

I'm planning to reuse the same set of build parameters (like 10 of them) across dozens of jobs.

One way is to create a job, and clone it. But what if I want to change the build parameters at the later time when I have already hundred of similar jobs. Editing all of them one by one could be a nightmare.

Is there any way of managing parameterized projects?

As solution to this problem I would imaging some option or plugin where I can define global set of parameters and reuse them across my jobs.

like image 278
kenorb Avatar asked Jul 10 '16 02:07

kenorb


1 Answers

Using Parameterized Trigger Plugin you can save the properties in a property file and pass them across jobs. Then in you can override or use as is in the subsequent jobs.

Also this would help: Retrieve parameters from properties file.

like image 197
vaibhavnd Avatar answered Sep 26 '22 20:09

vaibhavnd