lockable-resources-plugin icon indicating copy to clipboard operation
lockable-resources-plugin copied to clipboard

Nodes are shown as locked although they are not

Open nachevn opened this issue 6 years ago • 1 comments

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);

nachevn avatar Feb 25 '18 09:02 nachevn

I am facing the same error. did jenkins team make a fix ?

tanzeelrana avatar Nov 02 '18 16:11 tanzeelrana