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

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

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            vanderhu Maikel vd Hurk created issue -
            nickbrown Nicholas Brown made changes -
            Field Original Value New Value
            Component/s workflow-multibranch-plugin [ 21465 ]
            nickbrown Nicholas Brown made changes -
            Labels bitbucket-branch-source-plugin multibranch
            nickbrown Nicholas Brown made changes -
            Link This issue is related to JENKINS-38409 [ JENKINS-38409 ]
            nickbrown Nicholas Brown made changes -
            Link This issue is related to JENKINS-43132 [ JENKINS-43132 ]
            nickbrown Nicholas Brown made changes -
            Link This issue is related to JENKINS-32997 [ JENKINS-32997 ]
            nickbrown Nicholas Brown made changes -
            Link This issue is related to JENKINS-43353 [ JENKINS-43353 ]
            akom 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) ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                vanderhu Maikel vd Hurk
              • Votes:
                16 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: