Commit 7a37e5c6 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Mention Git strategy none

[ci skip]
parent bc15f6fb
...@@ -422,6 +422,8 @@ deploy_review: ...@@ -422,6 +422,8 @@ deploy_review:
- master - master
stop_review: stop_review:
variables:
GIT_STRATEGY: none
script: script:
- echo "Remove review app" - echo "Remove review app"
when: manual when: manual
...@@ -430,6 +432,10 @@ stop_review: ...@@ -430,6 +432,10 @@ stop_review:
action: stop action: stop
``` ```
Setting the [`GIT_STRATEGY`][git-strategy] to `none` is necessary on the
`stop_review` job so that the [GitLab Runner] won't try to checkout the code
after the branch is deleted.
>**Note:** >**Note:**
Starting with GitLab 8.14, dynamic environments will be stopped automatically Starting with GitLab 8.14, dynamic environments will be stopped automatically
when their associated branch is deleted. when their associated branch is deleted.
...@@ -445,6 +451,8 @@ You can read more in the [`.gitlab-ci.yml` reference][onstop]. ...@@ -445,6 +451,8 @@ You can read more in the [`.gitlab-ci.yml` reference][onstop].
> [Introduced][ce-7015] in GitLab 8.14. > [Introduced][ce-7015] in GitLab 8.14.
As we've seen in the [dynamic environments](#dynamic-environments), you can As we've seen in the [dynamic environments](#dynamic-environments), you can
prepend their name with a word, then followed by a `/` and finally the branch
name which is automatically defined by the `CI_BUILD_REF_NAME` variable.
In short, environments that are named like `type/foo` are presented under a In short, environments that are named like `type/foo` are presented under a
group named `type`. group named `type`.
...@@ -498,3 +506,5 @@ Below are some links you may find interesting: ...@@ -498,3 +506,5 @@ Below are some links you may find interesting:
[only]: yaml/README.md#only-and-except [only]: yaml/README.md#only-and-except
[onstop]: yaml/README.md#environment-on_stop [onstop]: yaml/README.md#environment-on_stop
[ce-7015]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7015 [ce-7015]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7015
[gitlab runner]: https://docs.gitlab.com/runner/
[git-strategy]: yaml/README.md#git-strategy
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