-
Bug
-
Resolution: Fixed
-
Major
-
None
-
lockable-resources 2.3
The manual reserve feature doesn't work well with the pipeline variable feature. When a user unreserves a resource and the plugin assigns the resource immediately to a queued build, the environment variable won't be correctly set.
In LockableResourceManager.unreserve, there is a LockStepExecution.proceed call at the end with the variable left null. I have no idea how to retrieve a singular variable to use at this point in the code.
- depends on
-
JENKINS-50176 Locked resources using the variable parameter do not get reset to the variable once released to another requester and only appear as null on subsequent locks
-
- Resolved
-
Same here, Jenkins ver. 2.138.2 and lockable-resources 2.3.
This results in a failed build due to groovy.lang.MissingPropertyException: No such property: [...] for class: groovy.lang.Binding
PS: First, I was irritated by this closed GitHub ticket because I thought it was the same scenario, but it's not!
That ticket adressed one build waiting for another (to free up the resource), but here we have a job waiting for a manually reserved resource.