Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
aea8baed
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
aea8baed
编写于
11月 17, 2016
作者:
A
Achilleas Pipinellis
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'docs/environments' into 'master'
Mention Git strategy none See merge request !7530
上级
aa841e6f
7a37e5c6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
0 deletion
+10
-0
doc/ci/environments.md
doc/ci/environments.md
+10
-0
未找到文件。
doc/ci/environments.md
浏览文件 @
aea8baed
...
...
@@ -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
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录