Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Help rescue Jenkins in memory data to disk
for (def u in User.byName.values()) { u.save() }
for (def item in Jenkins.instance.allItems) { item.save() }
for (def c in Jenkins.instance.computers) { if (!(c instanceof hudson.model.Hudson$MasterComputer)) c.getNode().save() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.