`on_stop` just isn’t routinely triggered anymore, stopping surroundings turns into not possible (#60885) · Points · GitLab.org / GitLab Group Version · GitLab
[ad_1]
Abstract
Because the 11.10
model, on_stop
(in .gitlab-ci.yml
) just isn’t routinely triggered anymore. For instance, while you merge the MR (deleting the supply department) the evaluate software surroundings is not stopped.
Steps to breed
- Create a undertaking (even empty)
- add
.gitlab-ci.yml
with this content material:
phases:
- calculations
- preview
addition:
solely:
- grasp
stage: calculations
script:
- expr 40 + 2
surroundings:
title: manufacturing
url: http://www.google.com
run_preview:
stage: preview
solely:
- merge_requests
script: |
echo "creating an surroundings"
surroundings:
title: preview
url: http://www.google.com
on_stop: stop_preview
stop_preview:
stage: preview
when: guide
solely:
- merge_requests
script: |
echo "deleting an surroundings"
surroundings:
title: preview
motion: cease
- while you commit on
grasp
it would create amanufacturing
surroundings - while you create a MR it would create a
preview
surroundings - while you merge the MR (deleting the supply department) the
preview
surroundings is not going to be stopped
with the 11.09
model, the preview
surroundings was stopped routinely
Instance Venture
instance: https://gitlab.com/kebab-corp/demo
What’s the present bug conduct?
When doing a Evaluation Utility, the evaluate surroundings is not stopped when merging (and deleting the supply department)
What’s the anticipated appropriate conduct?
When doing a Evaluation Utility, the evaluate surroundings is stopped when merging (and deleting the supply department)
Output of checks
This bug occurs on GitLab.com and on GitLab self-hosted
[ad_2]
Supply hyperlink