Merge branch 'fix-environment-on-stop-not-work' into 'master'
`on_stop` is not automatically triggered with pipelines for merge requests
Closes #60885
See merge request gitlab-org/gitlab-ce!27618
(cherry picked from commit 2432a540)
daa8f784 Fix environment automatic on_stop trigger