Details
-
Improvement
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
Extend the use of quantity configuration parameter to the lock step.
The behavior should be the same than defined for freestyle builds.
The DSL should look like this:
lock (resource: 'RAM', quantity: 3) { ... }
quantity must be applicable to any of resource, resources or label (see JENKINS-34268).
Attachments
Issue Links
- is related to
-
JENKINS-34268 Lock multiple resources using the Pipeline lock step
-
- Resolved
-
-
JENKINS-30269 Add workflow support for resource locking
-
- Resolved
-
-
JENKINS-42339 each lockable resource should have a quantity field which defaults to 1
-
- Open
-
- links to
Thanks for fixing this. I observed that currently there is no way to configure the quantity of specific resource and we are forced to add lots of duplicated resources in order to overcome this. Still this does not scale and after 5-10 clones it becomes too hard to add additional. Due to this I raised JENKINS-42339 for adding a quantity inside the configure screen.