Add auto-cancel for pending pipelines on branch, if they are not HEAD
Compare changes
- Maxim Rydkin authored
Decrease entropy in Gitlab universe
First iteration for #8998 (closed)
Adds option "Auto-cancel pending pipelines" in "CI/CD Pipelines" project settings tab: when checkbox checked, all pending non-HEAD pipelines will be canceled by system, automatizing scenario:
1. "User creates pipeline for branch" / "User pushes commit to gitlab"
2. User goes to pipelines index page and cancel unnecessary (only pending) pipelines.
Adds target: '_blank'
to doc links in "CI/CD Pipelines" project settings tab
Refactor spec/services/ci/create_pipeline_service_spec.rb
, extracting execute_service
method
UI:
Pipeline #12345678 was auto-canceled.. etc
auto-canceled
will bring the same tooltipsauto-canceled
(not anything else)auto-canceled
(not anything else)Many reasons are discussed here #8998 (closed)
Option in CI/CD Pipelines Project settings tab:
Pipeline list:
Pipeline page:
Job list:
Job view:
Job list in pipeline view:
Setting:
master
(if it does - rebase it please)