-
Bug
-
Resolution: Unresolved
-
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.