summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2019-07-03 23:59:48 +0000
committerEvan Read <eread@gitlab.com>2019-07-03 23:59:48 +0000
commitaef24e9f8db8f163fd069fac416b1e0cf3909647 (patch)
tree88b1a9154ef624f3ec80bee55b5d5f03ce789ec5
parentd69a093246d2aa3b176f7e357bc44f9dd69ee9b7 (diff)
parentb7ebf1b531ee75658f1ccb37019304b2edb051c5 (diff)
downloadgitlab-ce-aef24e9f8db8f163fd069fac416b1e0cf3909647.tar.gz
Merge branch 'docs-environment-stop-git-strategy' into 'master'
Updates the yaml docs to match the environment docs regarding `GIT_STRATEGY=none` See merge request gitlab-org/gitlab-ce!30283
-rw-r--r--doc/ci/yaml/README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md
index 2759f1c5160..3e564e4244c 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -973,6 +973,8 @@ review_app:
stop_review_app:
stage: deploy
+ variables:
+ GIT_STRATEGY: none
script: make delete-app
when: manual
environment:
@@ -987,6 +989,10 @@ Once the `review_app` job is successfully finished, it will trigger the
set it up to `manual` so it will need a [manual action](#whenmanual) via
GitLab's web interface in order to run.
+Also in the example, `GIT_STRATEGY` is set to `none` so that GitLab Runner won’t
+try to check out the code after the branch is deleted when the `stop_review_app`
+job is [automatically triggered](../environments.md#automatically-stopping-an-environment).
+
The `stop_review_app` job is **required** to have the following keywords defined:
- `when` - [reference](#when)