W
W
WoodyPekar2021-05-17 19:31:49
Jenkins
WoodyPekar, 2021-05-17 19:31:49

Is it possible to change 1 parameter in all jenkins projects?

How is it possible to change/add the value of the Item parameter in jenkins?

I will assume that with the help of Jenkins CLI , but I could not find an example of this on the Internet.
As far as I understand, each Jenkins project should have a json or yaml description. In this case, it would be possible to write a script that added / replaced the parameter, but I couldn’t find such a description in my place ..
Or maybe there is REST or WSDL to which you can suck and correct the values ​​..

For example, I need to add to the settings of each project: in the "Projects" block, the "Behaviours" subblock and there the "Discover merge requests from origin" parameter


If you have any thoughts on this, please share.
It seems that such an ordinary thing, there should be just millions of manuals for such

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Karasik, 2021-05-18
@vitaly_il1

I haven't researched seriously, but IMHO - no, it's impossible. Because projects are different.
If you are interested in a specific parameter for specific projects, look at their XML and come up with some kind of script.

K
Kastuś, 2022-02-15
@Gytim

Use Vault for example, you can load the key value there and build json with parameters

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question