upgrade job configuration with api?

10 views
Skip to first unread message

Makson Lee

unread,
Apr 18, 2017, 7:53:18 PM4/18/17
to Jenkins Users
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()
}

Reply all
Reply to author
Forward
0 new messages