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

Abort ongoing builds of PR if new change to the same PR was submitted

      This ticket is to request functionality to abort ongoing builds of PR if new change to the same PR was submitted, similarly like is done in the gerrit-trigger-plugin (see: https://github.com/jenkinsci/gerrit-trigger-plugin/pull/326).

      I couldn't find a way to configure this with the current latest version (2.2.3) of the Bitbucket Branch Source Plugin, but I believe that this function is quite key as it is kind of pointless to keep testing an outdated PR once the code in it was changed, so there should be an option to, in the case of a PR code update (changed or new commits), current and queued job(s) for that PR should be aborted and only the job testing the last changes should run.

          [JENKINS-47503] Abort ongoing builds of PR if new change to the same PR was submitted

          Maikel vd Hurk created issue -
          Nicholas Brown made changes -
          Component/s New: workflow-multibranch-plugin [ 21465 ]
          Nicholas Brown made changes -
          Labels New: bitbucket-branch-source-plugin multibranch
          Nicholas Brown made changes -
          Link New: This issue is related to JENKINS-38409 [ JENKINS-38409 ]
          Nicholas Brown made changes -
          Link New: This issue is related to JENKINS-43132 [ JENKINS-43132 ]
          Nicholas Brown made changes -
          Link New: This issue is related to JENKINS-32997 [ JENKINS-32997 ]
          Nicholas Brown made changes -
          Link New: This issue is related to JENKINS-43353 [ JENKINS-43353 ]
          Alexander Komarov made changes -
          Comment [ I'd also suggest the option to cancel the currently running build *if the PR is closed*.  

          (This happens on some other CI systems I've used, ie Azure Pipelines) ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            vanderhu Maikel vd Hurk
            Votes:
            16 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved: