interruptible keyword has no effect when newer pipeline is started through web UI
Summary
When a job is configured with interruptible
set to true
, it doesn't get cancelled when a newer pipeline is started through the web UI.
Steps to reproduce
- Create a project and make sure Auto cancel redundant pipelines is enabled
- Add below
.gitlab-ci.yml
:
Test-interruptible:
image: alpine:latest
script:
- echo 'test...'
- sleep 110
interruptible: true
rules:
- if: $CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web"
when: on_success
allow_failure: false
- if: $CI_COMMIT_BRANCH == "release"
when: never
- Commit and push the .gitlab-ci.yml. A pipeline has been created.
- Go to Build > Pipelines. Click Run pipeline and run a pipeline.
- Previously running job is still running and not cancelled. Both jobs run in parallel.
Example Project
https://gitlab.com/gitlab-gold/emunn-test/zd447173
What is the current bug behavior?
The job with interruptible
set to true
does not get cancelled.
What is the expected correct behavior?
Job should be cancelled when a new pipeline starts.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com