Created
May 14, 2018 07:37
-
-
Save matthiasbaldi/4022e7ed6a5d037644254ddb822d65ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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