throttleJobProperty Not Work As Expected When maxConcurrentTotal=1

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Environment:
      Jenkins: 2.462.1
      throttle-concurrent-builds-plugin: 2.14

      upstream job

      def jobName = 'downstreamthrottle'
      build job: jobName, wait: false, parameters: [string(name: 'MASTER_RELEASE_STREAM', value: 'fs')]
      build job: jobName, wait: false  

      'downstreamthrottle' job

      def pms = [string(name: 'MASTER_RELEASE_STREAM', defaultValue: '', description: 'Indicate current master development release branch')]
      
      properties([
              throttleJobProperty(
                      maxConcurrentPerNode: 0,
                      maxConcurrentTotal: 1,
                      throttleEnabled: true,
                      throttleOption: 'project',
              )
      ])
      node {
          echo "runnig"
          sleep 10
      }  

      The expected effect is that only 1 build of 'downstreamthrottle' job is allowed to run at one time. 

      The result is two builds of 'downstreamthrottle' job will run at the same time.

            Assignee:
            Unassigned
            Reporter:
            wangcheng cai
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: