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 <[email protected]> wrote:
> 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 configuration of all
> Jobs in a batch?
>
> Maybe something like (?):
> for job in jobs
>   job.save()
>
> Regards,
> Nux.
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/56C492E6.9040009%40mol.com.pl.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAArU9iZOD5fXgsqa1zcMkhpk8n%2B4eyc8%3D2Jr%3DNVRtAvo9BYYog%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to