-
Bug
-
Resolution: Unresolved
-
Major
-
None
Context :
- we have a multibranch job, configured for discovering branches / MRs / ..., with such pipeline
pipeline { agent { label ... } options { ... throttleJobProperty( categories: ['myCategory'], throttleEnabled: true, throttleOption: 'category' ) } ... }
- "myCategory" is configured properly
- but also configured for "Suppress automatic SCM triggering" (from Branch API plugin)
- so we have such jobs, where we manually triggered some job, under some "customer driven" needs
Fact :
Throttling works fine with respect to configuration / category, for jobs that have been scheduled at least once, but throttling seems to not be honored for the first run of every job in this multibranch job.
[JENKINS-72669] Throttling on manually first triggered jobs of multibranch pipeline does not work
Attachment | New: screenshot-1.png [ 62040 ] |
Description |
Original:
Context :
# we have a multibranch job, configured for discovering branches / MRs / ..., with such pipeline {code} pipeline { agent { label ... } options { ... throttleJobProperty( categories: ['myCategory'], throttleEnabled: true, throttleOption: 'category' ) } } {code} # "myCategory" is configured properly # but also configured for "Suppress automatic SCM triggering" (from Branch API plugin) # so we have such jobs, where we manually triggered some job, under some "customer driven" needs Fact : Throttling works fine with respect to configuration / category, for jobs that have been scheduled at least once, but throttling seems to not be honored for the first run of every job in this multibranch job. |
New:
Context :
# we have a multibranch job, configured for discovering branches / MRs / ..., with such pipeline {code} pipeline { agent { label ... } options { ... throttleJobProperty( categories: ['myCategory'], throttleEnabled: true, throttleOption: 'category' ) } } {code} # "myCategory" is configured properly # but also configured for "Suppress automatic SCM triggering" (from Branch API plugin) # so we have such jobs, where we manually triggered some job, under some "customer driven" needs !screenshot-1.png|thumbnail! Fact : Throttling works fine with respect to configuration / category, for jobs that have been scheduled at least once, but throttling seems to not be honored for the first run of every job in this multibranch job. |
Description |
Original:
Context :
# we have a multibranch job, configured for discovering branches / MRs / ..., with such pipeline {code} pipeline { agent { label ... } options { ... throttleJobProperty( categories: ['myCategory'], throttleEnabled: true, throttleOption: 'category' ) } } {code} # "myCategory" is configured properly # but also configured for "Suppress automatic SCM triggering" (from Branch API plugin) # so we have such jobs, where we manually triggered some job, under some "customer driven" needs !screenshot-1.png|thumbnail! Fact : Throttling works fine with respect to configuration / category, for jobs that have been scheduled at least once, but throttling seems to not be honored for the first run of every job in this multibranch job. |
New:
*Context :*
# we have a multibranch job, configured for discovering branches / MRs / ..., with such pipeline {code} pipeline { agent { label ... } options { ... throttleJobProperty( categories: ['myCategory'], throttleEnabled: true, throttleOption: 'category' ) } } {code} # "myCategory" is configured properly # but also configured for "Suppress automatic SCM triggering" (from Branch API plugin) # so we have such jobs, where we manually triggered some job, under some "customer driven" needs !screenshot-1.png|thumbnail! *Fact :* Throttling works fine with respect to configuration / category, for jobs that have been scheduled at least once, but throttling seems to not be honored for the first run of every job in this multibranch job. |
Summary | Original: Throttling on manually first triggered jobs do not work | New: Throttling on manually first triggered jobs of multibranch pipeline does not work |
Description |
Original:
*Context :*
# we have a multibranch job, configured for discovering branches / MRs / ..., with such pipeline {code} pipeline { agent { label ... } options { ... throttleJobProperty( categories: ['myCategory'], throttleEnabled: true, throttleOption: 'category' ) } } {code} # "myCategory" is configured properly # but also configured for "Suppress automatic SCM triggering" (from Branch API plugin) # so we have such jobs, where we manually triggered some job, under some "customer driven" needs !screenshot-1.png|thumbnail! *Fact :* Throttling works fine with respect to configuration / category, for jobs that have been scheduled at least once, but throttling seems to not be honored for the first run of every job in this multibranch job. |
New:
*Context :*
# we have a multibranch job, configured for discovering branches / MRs / ..., with such pipeline {code} pipeline { agent { label ... } options { ... throttleJobProperty( categories: ['myCategory'], throttleEnabled: true, throttleOption: 'category' ) } ... } {code} # "myCategory" is configured properly # but also configured for "Suppress automatic SCM triggering" (from Branch API plugin) # so we have such jobs, where we manually triggered some job, under some "customer driven" needs !screenshot-1.png|thumbnail! *Fact :* Throttling works fine with respect to configuration / category, for jobs that have been scheduled at least once, but throttling seems to not be honored for the first run of every job in this multibranch job. |
Since the options (~ properties in non-declarative) essentially reconfigures the job every time it runs, this is likely a limitation one needs to live with. Same with build parameters, you declare them in the pipeline definition but the first build goes without.