Skip to content

Instantly share code, notes, and snippets.

@jordiclariana
Created June 14, 2018 07:54
Show Gist options
  • Save jordiclariana/681083b4e746b8b730356bc6ae0ce50a to your computer and use it in GitHub Desktop.
Save jordiclariana/681083b4e746b8b730356bc6ae0ce50a to your computer and use it in GitHub Desktop.
Delete old locks from Jenkins
def res = GlobalConfiguration.all().get(org.jenkins.plugins.lockableresources.LockableResourcesManager.class).resources
res.retainAll {it -> it.locked}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment