Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthiasbaldi/4022e7ed6a5d037644254ddb822d65ea to your computer and use it in GitHub Desktop.
Save matthiasbaldi/4022e7ed6a5d037644254ddb822d65ea to your computer and use it in GitHub Desktop.
// delete all lockable ressources
def res = GlobalConfiguration.all().get(org.jenkins.plugins.lockableresources.LockableResourcesManager.class).resources
res.retainAll {it -> it.locked || it.labelsContain('handmade')}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment