Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-22726

Cancel previous builds when a new one starts - Self-hosted runners

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem Definition

      At the moment, a self-hosted runner can run one build at a time. Subsequent builds that are triggered get queued until the runner is free to run them. This can often lead to a long queue of builds.

      For pipelines that run on branches, some users do not want to wait for older pipelines to finish when a new commit is pushed to the same branch. Instead, it would be preferable to cancel older builds that are still running when there is a new commit on the same branch and run only the latest build.

      Similarly, for pipelines that run in pull requests, some users would prefer if a new pull request build cancels any builds on the same pull request that are still running, and run only the latest one.

      Suggested Solution

      Provide an option to users that will automatically cancel older pipelines that are still running when a new one is triggered on the same definition.

              Unassigned Unassigned
              tboudale Theodora Boudale (Inactive)
              Votes:
              65 Vote for this issue
              Watchers:
              23 Start watching this issue

                Created:
                Updated: