Bob Bick <bbick <at> netjets.com> writes:

> 
> 
> 
> Hi,
>  
> We have many Jenkins jobs defined that were copied from a “template”
Jenkins job. Now, I discovered that I’d like to add a new build step to most
(not all)
>  of the jobs.
>  
> There seems to be several ways to modify the jobs:
> 
> 1)     
> Brute force – Edit each job by clicking the Jenkins
>  “Job Configure” button for each job. (Yuck)
> 
> 2)     
> Groovy Script Console
> - This has the downside that I could screw up the configurations if I have
a bug in the groovy script.
> 
> 3)     
> Job DSL Plugin
> 
> 4)     
> Jenkins Enterprise Templates – Not really sure whether
>  this can even be done. 
> 
> 5)     
> Manually edit config.xml files
> 
> 6)     
> Other???
>  
> Before investing time in coming up with a solution, I would like to know
how other people have addressed mass updates to Jenkins jobs; and what
worked well
>  (or not so well).
>  
> Any feedback/guidance would be much appreciated.
>  
> Thanks,
>  
> Bob
> 
> 
> *** *** ***
> This message contains information which may be confidential and
privileged. Unless you are the addressee (or authorized to receive for the
addressee), you may not use, copy or disclose to anyone the message or any
information contained in the message. If you have received the message in
error,  please advise the sender by reply e-mail and delete the message.
> 
> 

Hi Bob,

For this I have used essentially configuration slice plugin and jenkin cli.
For the last one, using batch command in a shell you can get all config.xml
(get-job), modify them and then update the job using update-job command. Or
you can use the template in the same way to generate different configuration
and create/update your jobs.

Regards,

Robert 


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to