-
Bug
-
Resolution: Fixed
-
Critical
-
lockable-resources:1.10
Resource lock is not always released when there is some contention over it.
This can, intermittently, be reproduced by running two builds of the below pipeline concurrently. Retry will simulate inability to cancel the build which should make hard kill link to appear. Canceling the builds in turn as they acquire the lock will sometimes produce the dangling lock.
retry(5) { node('linux') { lock('my-resource') { println ("running find") sh "find / -name hello.txt" } } }
- is duplicated by
-
JENKINS-38266 Lock released, but waiting acquirers won't continue to work
- Closed
- is related to
-
JENKINS-36479 Locked resources not freed up by Pipeline job hard kill
- Resolved
- links to