Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
9ea4a5bc
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,发现更多精彩内容 >>
提交
9ea4a5bc
编写于
11月 17, 2016
作者:
A
Achilleas Pipinellis
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add note about auto-stopping of environments
上级
556aaebc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
5 deletion
+19
-5
doc/ci/environments.md
doc/ci/environments.md
+13
-4
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+6
-1
未找到文件。
doc/ci/environments.md
浏览文件 @
9ea4a5bc
...
...
@@ -395,11 +395,12 @@ next how environments can be stopped.
By stopping an environment, you are effectively terminating its recording of the
deployments that happen in it.
>**Note:**
Starting with GitLab 8.14, dynamic environments will be stopped automatically
when their associated branch is removed.
A branch is associated with an environment when the CI pipeline that is created
for this branch, was recently deployed to this environment. You can think of
the CI pipeline as the glue between the branch and the environment:
`branch ➔ CI pipeline ➔ environment`
.
There is a special case where environments can be manually
clos
ed. That can
There is a special case where environments can be manually
stopp
ed. That can
happen if you provide another job for that matter. The syntax is a little
tricky since a job calls another job to do the job.
...
...
@@ -429,6 +430,14 @@ stop_review:
action
:
stop
```
>**Note:**
Starting with GitLab 8.14, dynamic environments will be stopped automatically
when their associated branch is deleted.
When you have an environment that has a stop action defined (typically when
the environment describes a review app), GitLab will automatically trigger a
stop action when the associated branch is deleted.
You can read more in the
[
`.gitlab-ci.yml` reference
][
onstop
]
.
## Grouping similar environments
...
...
doc/ci/yaml/README.md
浏览文件 @
9ea4a5bc
...
...
@@ -627,7 +627,12 @@ deploy to production:
#### environment:on_stop
> [Introduced][ce-6669] in GitLab 8.13.
>
**Notes:**
-
[
Introduced
][
ce-6669
]
in GitLab 8.13.
-
Starting with GitLab 8.14, when you have an environment that has a stop action
defined, GitLab will automatically trigger a stop action when the associated
branch is deleted.
Closing (stoping) environments can be achieved with the
`on_stop`
keyword defined under
`environment`
. It declares a different job that runs in order to close
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录