Created
June 14, 2018 07:54
-
-
Save jordiclariana/681083b4e746b8b730356bc6ae0ce50a to your computer and use it in GitHub Desktop.
Delete old locks from Jenkins
This file contains hidden or 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
| 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