From b7ebf1b531ee75658f1ccb37019304b2edb051c5 Mon Sep 17 00:00:00 2001 From: Mark Lapierre Date: Wed, 3 Jul 2019 05:01:57 +0000 Subject: Update docs environment:action:stop GIT_STRATEGY Notes that `GIT_STRATEGY` should be set to `none` so that the job doesn't fail when triggered automatically when the branch is deleted. --- doc/ci/yaml/README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/ci') 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) -- cgit v1.2.1