Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75256

throttleJobProperty Not Work As Expected When maxConcurrentTotal=1

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 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.

          [JENKINS-75256] throttleJobProperty Not Work As Expected When maxConcurrentTotal=1

          There are no comments yet on this issue.

            Unassigned Unassigned
            danielcwc wangcheng cai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: