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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
89207201
Commit
89207201
authored
Nov 13, 2018
by
Kamil Trzciński
Committed by
Achilleas Pipinellis
Nov 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EE: Add documentation for archive builds
parent
6bf1794a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
app/views/admin/application_settings/_ci_cd.html.haml
app/views/admin/application_settings/_ci_cd.html.haml
+5
-5
doc/user/admin_area/settings/continuous_integration.md
doc/user/admin_area/settings/continuous_integration.md
+16
-0
No files found.
app/views/admin/application_settings/_ci_cd.html.haml
View file @
89207201
...
...
@@ -45,12 +45,12 @@
<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
builds 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'
.form-text.text-muted
Set the duration
when build gonna be considered old. Archived builds cannot be retri
ed.
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
for which the jobs will be considered as old and expir
ed.
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>
.
=
f
.
submit
'Save changes'
,
class:
"btn btn-success"
doc/user/admin_area/settings/continuous_integration.md
View file @
89207201
...
...
@@ -91,3 +91,19 @@ You can see there an overview of the pipeline minutes quota of all projects of
the group.
![
Group pipelines quota
](
img/group_pipelines_quota.png
)
## Archive jobs **[CORE ONLY]**
Archiving jobs is useful for reducing the CI/CD footprint on the system by
removing some of the capabilities of the jobs (metadata needed to run the job),
but persisting the traces and artifacts for auditing purposes.
To set the duration for which the jobs will be considered as old and expired:
1.
Go to
**Admin area > Settings > CI/CD > Continuous Integration and Deployment**
.
1.
Change the value of "Archive jobs".
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