Add a "Cancel Running Pipelines" in the Pipelines page
Description
We might often need to cancel pipelines running on a specific project because they're created by many commits, but we actually want only the last pipeline to actually run.
Proposal
Add a "Cancel" button in Pipelines > Pipelines page to stop running pipelines, similar to what we've in the Jobs page.
It could be interesting to have multiple options for this button:
- cancel all running pipelines
- cancel all pipelines but the latest for each branch
- cancel all pipelines owned by me (not sure what happens if someone else retries a job in my pipeline)
We could consider having a dropdown-button (the same we already have for choosing between comment and discussion, or in the MR widget) to choose between different behaviors.
Links / references
Use cases
Release Post: we've a lot of pipelines on release-X-Y
branch, but actually we just need one to complete from time to time in order to update the review app. Cancelling pipelines on that branch only (but the latest) doesn't impact on all other tasks unrelated to the release post.
Feature checklist
Make sure these are completed before closing the issue, with a link to the relevant commit.
-
Feature assurance -
Documentation -
Added to features.yml