Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
Jenkins 1.642.4.2 with Cloudbees Enterprise 15.11
Lockable Resource plugin 1.8
Lockable Resource plugin 2.2
-
-
Pipeline - April 2018
-
lockable-resources 2.3
Description
Add a lockable resource named "test_res"
Add a pipeline job with only this code:
node {
lock('test_res') {
echo 'locked'
}
echo 'unlocked'
}
Run this job. It should work fine.
Now perform a manual reserve of the resource via the lockable resource interface.
Start the job again.
It correctly waits for the resource:
[Pipeline] node {
[Pipeline] Lock shared resource : Start
Trying to acquire lock on [test_res]
[test_res] is locked, waiting...
Now go back to the Lockable Resource user interface.
Manually unlock the resource.
Expected result: the locked job should retry the lock, see that it has been freed, continue (locking the resource and freeing it) and finish correctly.
Observed result: after waiting for > 5 minutes, nothing changed. The job stayed in exactly the same situation (output as above) and had to be cancelled.
Attachments
Issue Links
- is duplicated by
-
JENKINS-46745 Unreserve resource should make resource available to running jobs like unlock step does.
-
- Closed
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | lockable-resources-plugin [ 18222 ] |
Workflow | JNJira [ 170547 ] | JNJira + In-Review [ 183951 ] |
Component/s | pipeline-utility-steps-plugin [ 21135 ] |
Assignee | rsandell [ rsandell ] |
Assignee | Andrew Bayer [ abayer ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Summary | pipeline lock does not retry | Pipeline locks not signalled on manual unreserving of resources |
Status | In Progress [ 3 ] | In Review [ 10005 ] |
Remote Link | This issue links to "PR #70 (Web Link)" [ 17462 ] |
Link |
This issue is duplicated by |
Sprint | Pipeline - December [ 446 ] |
Rank | Ranked lower |
Remote Link | This issue links to "CloudBees Internal CD-216 (Web Link)" [ 19050 ] |
Sprint | Pipeline - December [ 446 ] | Pipeline - March 2018 [ 506 ] |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10005 ] | Resolved [ 5 ] |
Environment |
Jenkins 1.642.4.2 with Cloudbees Enterprise 15.11 Lockable Resource plugin 1.8 |
Jenkins 1.642.4.2 with Cloudbees Enterprise 15.11 Lockable Resource plugin 1.8 Lockable Resource plugin 2.2 |
Released As | lockable-resources 2.3 |
Rank | Ranked higher |