lockable-resources-plugin icon indicating copy to clipboard operation
lockable-resources-plugin copied to clipboard

Use build parameter as the number of resources to lock

Open bluckau opened this issue 4 years ago • 0 comments

Similar to freestyle project: use build parameter as resource #159 but with the number of resources to lock rather than the name of the resource.

We have jobs that have inside them multiple threads. We have an environment variable called "WORKERS" that is default 5, but we often set it to 10, etc. I want to create a pool of 10 things, and be able to lock X number of them where X is the number of workers we specified in the env. variable WORKERS.

Is there currently a way to do this?

I would be willing to work on this and submit a pull request. The only part that would intimidate me is getting it properly tested, integrated, and merged.

bluckau avatar May 01 '20 21:05 bluckau