Duplicate builds triggered on Jenkins multibranch pipeline

后端 未结 5 1901
生来不讨喜
生来不讨喜 2021-02-14 07:18

We are seeing duplicate builds triggered on Jenkins multibranch pipeline projects. Builds are normally triggered using push notifications from Bitbucket using this plugin: http

5条回答
  •  萌比男神i
    2021-02-14 07:56

    As the other answer already suggested the "Do not allow concurrent builds" option is what you want. And you can get that via the Jenkinsfile:

     properties ([
          buildDiscarder(logRotator(artifactNumToKeepStr: '5', daysToKeepStr: '15')),
          disableConcurrentBuilds()
        ])
    

    EDIT:

    This is not the solution for the actual problem here. but it still seems helpful to some people, so I'll leave it as long as we don't have a better answer.

提交回复
热议问题