lockable-resources-plugin
lockable-resources-plugin copied to clipboard
Nodes are shown as locked although they are not
Jenkins nodes are shown as locked although they are not currently used. Is there a way to unlock them and could be possible to check if there are really some jobs currently running on those node before show them as locked?
09:54:38 Trying to acquire lock on [deploy-node-01]
09:54:38 Found 0 available resource(s). Waiting for correct amount: 1.
09:54:38 [deploy-node-01] is locked, waiting...
Update Ok, I found a way to unlock it but still, there should be a check to ensure if a resource is really locked or not.
org.jenkins.plugins.lockableresources.LockableResourcesManager.get().unlockNames(['deploy-node-01'], null, true);
I am facing the same error. did jenkins team make a fix ?