Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
6afa06a2
Commit
6afa06a2
authored
Nov 17, 2016
by
Achilleas Pipinellis
Committed by
Alejandro Rodríguez
Nov 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'docs/environments' into 'master'
Mention Git strategy none See merge request !7530
parent
f2669204
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
doc/ci/environments.md
doc/ci/environments.md
+10
-0
No files found.
doc/ci/environments.md
View file @
6afa06a2
...
...
@@ -422,6 +422,8 @@ deploy_review:
-
master
stop_review
:
variables
:
GIT_STRATEGY
:
none
script
:
-
echo "Remove review app"
when
:
manual
...
...
@@ -430,6 +432,10 @@ stop_review:
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:**
Starting with GitLab 8.14, dynamic environments will be stopped automatically
when their associated branch is deleted.
...
...
@@ -445,6 +451,8 @@ You can read more in the [`.gitlab-ci.yml` reference][onstop].
> [Introduced][ce-7015] in GitLab 8.14.
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
group named
`type`
.
...
...
@@ -507,3 +515,5 @@ Below are some links you may find interesting:
[
only
]:
yaml/README.md#only-and-except
[
onstop
]:
yaml/README.md#environment-on_stop
[
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment