Groovy script to update 1000 jobs in Jenkins with a http POST URL in POST BUILD section

Hi,

How to update 1000 jobs in Jenkins with a http POST URL in POST BUILD section. Can any one please help to write groovy script to update all at once

Please help on this script.

It would be much easier to help if we had some idea of what you were trying to do. Which jobs? The first 1000? Only the 1000 that have ‘fix-me’ in the name? What sort of information do you wish to POST?

There are two repositories with a bunch of scripts to process job batches and more, I did not see the exact script you need but you can compose it from them

1 Like

Hi @kuisathaverat ,
Thanks for your reply and sharing the scripts URL.
My requirement is i need to update the 1000jobs, having Postbuild Actions ===>HTTP Request section ===> Here we have two parameters URL and Method.===>now i want to update/replace the existing URL value with new URL value by using groovy script for these 1000 jobs.
Can anyone please help on this request. Thanks.