Reputation: 535
is it possible to manage some resources in Jenkins? By that I mean only certain number of jobs should run in parallel. E.g. my license server can provide only 4 licenses, so each job that uses such license should first check if some counter is greater that zero, next decrement and increment back after license is not needed anymore. There is Exclusion Plugin, but I think it can only create mutex (counter equals 1) not semaphore (counter equals 1 or more). Simple variable in script is not a solution, because same counter must be visible by master and all slaves. Any ideas how to handle that? Thanks in advance.
Upvotes: 2
Views: 1896
Reputation: 47287
You can use the Throttle Concurrent Builds Plugins. You can do it in two ways:
Upvotes: 2