Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
6a66c829
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,发现更多精彩内容 >>
提交
6a66c829
编写于
11月 08, 2018
作者:
K
Kamil Trzciński
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add documentation for archive builds
上级
938d8900
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
21 addition
and
5 deletion
+21
-5
app/views/admin/application_settings/_ci_cd.html.haml
app/views/admin/application_settings/_ci_cd.html.haml
+4
-5
doc/user/admin_area/settings/continuous_integration.md
doc/user/admin_area/settings/continuous_integration.md
+17
-0
未找到文件。
app/views/admin/application_settings/_ci_cd.html.haml
浏览文件 @
6a66c829
...
...
@@ -42,12 +42,11 @@
<code>
4 mins 2 sec
</code>
,
<code>
2h42min
</code>
.
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'user/admin_area/settings/continuous_integration'
,
anchor:
'default-artifacts-expiration'
)
.form-group
=
f
.
label
:archive_builds_in_human_readable
,
'Archive
build
s in'
,
class:
'label-bold'
=
f
.
label
:archive_builds_in_human_readable
,
'Archive
job
s in'
,
class:
'label-bold'
=
f
.
text_field
:archive_builds_in_human_readable
,
class:
'form-control'
,
placeholder:
'never'
.form-text.text-muted
Set the duration when build gonna be considered old. Archived builds cannot be retried.
Make it empty to never expire builds. It has to be larger than 1 day.
The default unit is in seconds, but you can define an alternative. For example:
<code>
4 mins 2 sec
</code>
,
<code>
2h42min
</code>
.
Set the duration when job gonna be considered old. Archived jobs cannot be retried.
Make it empty to never expire jobs. It has to be no less than 1 day.
For example:
<code>
15 days
</code>
,
<code>
1 month
</code>
,
<code>
2 years
</code>
.
=
f
.
submit
'Save changes'
,
class:
"btn btn-success"
doc/user/admin_area/settings/continuous_integration.md
浏览文件 @
6a66c829
...
...
@@ -49,3 +49,20 @@ and the default value is `30 days`. On GitLab.com they
This setting is set per job and can be overridden in
[
`.gitlab-ci.yml`
](
../../../ci/yaml/README.md#artifacts-expire_in
)
.
To disable the expiration, set it to
`0`
. The default unit is in seconds.
## Archive jobs in **[CORE ONLY]**
Set this setting to enable when job gonna be considered old.
The purpose of that feature is to reduce the CI footprint on system
removing some of the capabilities of the jobs (metadata needed to run the build),
but persisting the traces and artifacts to retain for auditing purposes.
The archived jobs cannot be retried. Making this field empty does never expire jobs.
The value has to be no less than 1 day. The example:
`15 days`
,
`1 month`
,
`2 years`
.
To change it:
1.
Go to
**Admin area > Settings > Continuous Integration and Deployment**
.
1.
Change the value of archive jobs in.
1.
Hit
**Save changes**
for the changes to take effect.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录