Commit 9ea4a5bc authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Add note about auto-stopping of environments

parent 556aaebc
...@@ -395,11 +395,12 @@ next how environments can be stopped. ...@@ -395,11 +395,12 @@ next how environments can be stopped.
By stopping an environment, you are effectively terminating its recording of the By stopping an environment, you are effectively terminating its recording of the
deployments that happen in it. deployments that happen in it.
>**Note:** A branch is associated with an environment when the CI pipeline that is created
Starting with GitLab 8.14, dynamic environments will be stopped automatically for this branch, was recently deployed to this environment. You can think of
when their associated branch is removed. the CI pipeline as the glue between the branch and the environment:
`branch ➔ CI pipeline ➔ environment`.
There is a special case where environments can be manually closed. That can There is a special case where environments can be manually stopped. That can
happen if you provide another job for that matter. The syntax is a little happen if you provide another job for that matter. The syntax is a little
tricky since a job calls another job to do the job. tricky since a job calls another job to do the job.
...@@ -429,6 +430,14 @@ stop_review: ...@@ -429,6 +430,14 @@ stop_review:
action: stop action: stop
``` ```
>**Note:**
Starting with GitLab 8.14, dynamic environments will be stopped automatically
when their associated branch is deleted.
When you have an environment that has a stop action defined (typically when
the environment describes a review app), GitLab will automatically trigger a
stop action when the associated branch is deleted.
You can read more in the [`.gitlab-ci.yml` reference][onstop]. You can read more in the [`.gitlab-ci.yml` reference][onstop].
## Grouping similar environments ## Grouping similar environments
......
...@@ -627,7 +627,12 @@ deploy to production: ...@@ -627,7 +627,12 @@ deploy to production:
#### environment:on_stop #### environment:on_stop
> [Introduced][ce-6669] in GitLab 8.13. >
**Notes:**
- [Introduced][ce-6669] in GitLab 8.13.
- Starting with GitLab 8.14, when you have an environment that has a stop action
defined, GitLab will automatically trigger a stop action when the associated
branch is deleted.
Closing (stoping) environments can be achieved with the `on_stop` keyword defined under Closing (stoping) environments can be achieved with the `on_stop` keyword defined under
`environment`. It declares a different job that runs in order to close `environment`. It declares a different job that runs in order to close
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment