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
Boxiang Sun
gitlab-ce
Commits
4e811d1b
Commit
4e811d1b
authored
Nov 13, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docs
parent
6a66c829
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
app/views/admin/application_settings/_ci_cd.html.haml
app/views/admin/application_settings/_ci_cd.html.haml
+5
-4
doc/user/admin_area/settings/continuous_integration.md
doc/user/admin_area/settings/continuous_integration.md
+11
-12
No files found.
app/views/admin/application_settings/_ci_cd.html.haml
View file @
4e811d1b
...
@@ -42,11 +42,12 @@
...
@@ -42,11 +42,12 @@
<code>
4 mins 2 sec
</code>
,
<code>
2h42min
</code>
.
<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'
)
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'user/admin_area/settings/continuous_integration'
,
anchor:
'default-artifacts-expiration'
)
.form-group
.form-group
=
f
.
label
:archive_builds_in_human_readable
,
'Archive jobs
in
'
,
class:
'label-bold'
=
f
.
label
:archive_builds_in_human_readable
,
'Archive jobs'
,
class:
'label-bold'
=
f
.
text_field
:archive_builds_in_human_readable
,
class:
'form-control'
,
placeholder:
'never'
=
f
.
text_field
:archive_builds_in_human_readable
,
class:
'form-control'
,
placeholder:
'never'
.form-text.text-muted
.form-text.text-muted
Set the duration when job gonna be considered old. Archived jobs cannot be retried.
Set the duration for which the jobs will be considered as old and expired.
Make it empty to never expire jobs. It has to be no less than 1 day.
Once that time passes, the jobs will be archived and no longer able to be
For example:
<code>
15 days
</code>
,
<code>
1 month
</code>
,
<code>
2 years
</code>
.
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"
=
f
.
submit
'Save changes'
,
class:
"btn btn-success"
doc/user/admin_area/settings/continuous_integration.md
View file @
4e811d1b
...
@@ -50,19 +50,18 @@ This setting is set per job and can be overridden in
...
@@ -50,19 +50,18 @@ This setting is set per job and can be overridden in
[
`.gitlab-ci.yml`
](
../../../ci/yaml/README.md#artifacts-expire_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.
To disable the expiration, set it to
`0`
. The default unit is in seconds.
## Archive jobs
in
**[CORE ONLY]**
## Archive jobs **[CORE ONLY]**
Set this setting to enable when job gonna be considered old.
Archiving jobs is useful for reducing the CI/CD footprint on the system by
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 job),
removing some of the capabilities of the jobs (metadata needed to run the build),
but persisting the traces and artifacts for auditing purposes.
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.
To set the duration for which the jobs will be considered as old and expired:
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 > CI/CD > Continuous Integration and Deployment**
.
1.
Change the value of "Archive jobs".
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.
1.
Hit
**Save changes**
for the changes to take effect.
Once that time passes, the jobs will be archived and no longer able to 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>
.
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