0

With the intention of Restricting to a single build at any point within a Multi-branch Pipeline Project, I have configured using https://plugins.jenkins.io/throttle-concurrents/#example-3-throttling-of-declarative-pipelines in my Jenkins file as below:

options { 
    disableConcurrentBuilds() 
    throttleJobProperty(
        categories: ['octhrottle'],
        throttleEnabled: true,
        throttleOption: 'category'
    )
 }

And configured the same in my Jenkins configuration as well: enter image description here

This setup is NOT working as expected whenever I create a new branches in the same repository. Whenever I create new branch, an initial build will run on the newly created branch for which both the newly created branches are running simultaneously. However, it is working as expected when I do subsequent file commits to these branches. Am I missing any additional configs here.

Any help to fix will be much appreciated. Thanks in advance

torek
  • 448,244
  • 59
  • 642
  • 775
Arivazhagan
  • 101
  • 5

0 Answers0