Quantcast

upgrade job configuration with api?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

upgrade job configuration with api?

Makson Lee
sometime, after upgrade a plugin, you just open a job configuration, do nothing, and then save it, you will find the job configuration has been updated to use the latest version configuration of plugin.

so, my question is, how to do it with api, i have tried to the following, but seems not working :-(

for (item in Jenkins.instance.getAllItems()) {
  item
.save()
}

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ebf8009e-5688-4faf-af02-d693b39001a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...