From 3b2b4bea8a639df10cea3a8b02a1c0b950e26c6b Mon Sep 17 00:00:00 2001 From: Anton Smith Date: Fri, 13 Sep 2019 04:40:43 +0000 Subject: Add note about env slugs not updating --- doc/ci/environments.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/ci/environments.md b/doc/ci/environments.md index c2d444cb1d6..f1f4e6fbd5f 100644 --- a/doc/ci/environments.md +++ b/doc/ci/environments.md @@ -136,6 +136,11 @@ In summary, with the above `.gitlab-ci.yml` we have achieved the following: > second is a "cleaned-up" version of the name, suitable for use in URLs, DNS, > etc. > +> If you change the name of an existing environment, the `$CI_ENVIRONMENT_NAME` +> will be updated with the new environment name but the `$CI_ENVIRONMENT_SLUG` +> won't be updated and will remain unchanged in order to prevent unintended +> side effects. +> > Starting with GitLab 9.3, the environment URL is exposed to the Runner via > `$CI_ENVIRONMENT_URL`. The URL is expanded from `.gitlab-ci.yml`, or if > the URL was not defined there, the external URL from the environment is used. -- cgit v1.2.3