• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker 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'
      } 

       

          [JENKINS-71636] maxConcurrentPerNode not working

          xu created issue -
          Mark Waite made changes -
          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 ]
          Mark Waite made changes -
          Comment [ Is there any update regarding this plugin issue? ]
          Captain Haddock made changes -
          Link New: This issue duplicates JENKINS-49173 [ JENKINS-49173 ]

            Unassigned Unassigned
            xushunwang xu
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: