Re: Save all configurations after Jenkins update

2016-02-17 Thread jieryn
Looks interesting! I haven't tried it. It doesn't appear to work with external changes coming into the configuration from outside the Jenkins server. (git pull) So we'd have to make up our own minds about when to do that anyway, this plugin porcelain doesn't seem to buy much. On Wed, Feb 17, 201

Re: Save all configurations after Jenkins update

2016-02-17 Thread Victor Martinez
What about https://wiki.jenkins-ci.org/display/JENKINS/SCM+Sync+configuration+plugin ? On Wednesday, 17 February 2016 21:39:18 UTC, Jesse Farinacci wrote: > > I've used JobConfigHistoryPlugin in the past. I find just using git is > easier and fits better with our existing tools, etc. > > On We

Re: Save all configurations after Jenkins update

2016-02-17 Thread jieryn
I've used JobConfigHistoryPlugin in the past. I find just using git is easier and fits better with our existing tools, etc. On Wed, Feb 17, 2016 at 4:35 PM, Victor Martinez wrote: > Maybe the below plugin might help you: > > - https://wiki.jenkins-ci.org/display/JENKINS/JobConfigHistory+Plugin >

Re: Save all configurations after Jenkins update

2016-02-17 Thread Victor Martinez
Maybe the below plugin might help you: - https://wiki.jenkins-ci.org/display/JENKINS/JobConfigHistory+Plugin cheers On Wednesday, 17 February 2016 17:55:49 UTC, maciej wrote: > > jieryn (2016-02-17 17:01): > > for (item in hudson.model.Hudson.instance.items) { > >println("Saving " + item);

Re: Save all configurations after Jenkins update

2016-02-17 Thread Maciej Jaros
jieryn (2016-02-17 17:01): for (item in hudson.model.Hudson.instance.items) { println("Saving " + item); item.save(); } Thanks, works great :-). I've just run it through Script Console. Regards, Nux. -- You received this message because you are subscribed to the Google Groups "Jenkins

Re: Save all configurations after Jenkins update

2016-02-17 Thread jieryn
Create a new freestyle job, run it @daily, or whatever. Add Groovy script execution build step, the full script is: for (item in hudson.model.Hudson.instance.items) { println("Saving " + item); item.save(); } On Wed, Feb 17, 2016 at 10:33 AM, Maciej Jaros wrote: > Hi. > > When you save confi

Save all configurations after Jenkins update

2016-02-17 Thread Maciej Jaros
Hi. When you save configuration of a Job after Jenkins update there are some changes made in the config.xml (e.g. plugin version change). Since I keep a history of all config.xml files in a repository that mess up history of changes... So. Is there some script or plugin that can re-save conf