jenkinsci / jenkinsci/lockable-resources-plugin
lockable-resource-plugin when a instance is locked it doesn't show in the build queue in jenkins web interface
- Dominant language
- Java
- Stars
- 99
- Forks
- 205
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 8
Description
### Jenkins and plugins versions report
Environment
Jenkins script:
```
if (params.USE_LOCK) {
lock(resource: params.RESOURCE) {
node(params.PARAM_AGENT) {
run_stages()
}
}
} else {
node(params.PARAM_AGENT) {
run_stages()
}
}
```
When I run this, it queues up properly but the queue is not showing up in jenkins web interface as shown in screen shot here:
### What Operating System are you using (both controller, and any agents involved in the problem)?
Linux
### Reproduction steps
1. Run Lock Build
2. Run Second lock build (queue's up but is not shown in interface of Jenkins UI)
3.
### Expected Results
I see the jenkins build in the queue
### Actual Results
The build queue shows empty
### Anything else?
_No response_
### Are you interested in contributing a fix?
_No response_
Contributor guide
Research direction
Start by reproducing the issue with the provided Pipeline script on Linux: run one lock build, then a second build using the same resource. Compare the actual queue state with the Jenkins web interface; the fix is complete when the waiting second build appears in the queue while the resource is locked.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100