-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
-
Jenkins 2.387.2
Throttle Concurrent Builds Plug-in 2.14
I have one main node and 2 slave node.
I want to limit one task at the same time per node.
So I set maxConcurrentPerNode: 1, maxConcurrentTotal: 0
But it does not work!!
Here is my code
// code placeholder options { throttleJobProperty categories: [], limitOneJobWithMatchingParams: false, maxConcurrentPerNode: 1, maxConcurrentTotal: 0, paramsToUseForLimit: 'Packer', throttleEnabled: true, throttleOption: 'project' }
- duplicates
-
JENKINS-49173 Maximum Concurrent Builds Per Node option not respected for Declarative Pipeline
-
- Open
-
[JENKINS-71636] maxConcurrentPerNode not working
Comment |
[ Hello,
It seems that the maxConcurrentPerNode setting isn’t behaving as expected. Let’s troubleshoot this. First, ensure that you’re using the correct syntax. The throttleJobProperty block should be inside a pipeline block. Here’s a concise version of your code snippet: pipeline { agent { label 'release-smoke-tests' } options { throttleJobProperty( limitOneJobWithMatchingParams: false, maxConcurrentPerNode: 1, maxConcurrentTotal: 0, paramsToUseForLimit: 'Packer', throttleEnabled: true, throttleOption: 'project' ) } } If it still doesn’t work, consider using the Lockable Resources Plugin as a workaround. It provides better control over resource allocation. Good luck with your Jenkins setup! [Official Site|https://www.receiptify.net] I hope the information will help you ] |
Comment | [ Is there any update regarding this plugin issue? ] |
Link | New: This issue duplicates JENKINS-49173 [ JENKINS-49173 ] |