Environment stop is not triggered on branch deletion when stage is called "test"
Summary
Environment stop is not triggered on branch deletion when stage is called "test"
Steps to reproduce
See example of .gitlb-ci.yml
:
review_app:
stage: test
script: make deploy-app
environment:
name: review
on_stop: stop_review_app
stop_review_app:
stage: test
script: make delete-app
when: manual
environment:
name: review
action: stop
It doesn't trigger stop-job automatically when branch is deleted.
This file is almost the same as in the documentation: https://docs.gitlab.com/ee/ci/yaml/#environmentaction
With only 1 difference - it has stage: test
instead of stage: deploy
The example from documentation does trigger stop-job.
What is the current bug behavior?
Stop job is not triggered automatically when branch is deleted.
What is the expected correct behavior?
Stop job is triggered automatically when branch is deleted.
Output of checks
This bug happens on GitLab.com