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
cd1e6dd3
Commit
cd1e6dd3
authored
Aug 17, 2018
by
Elan Ruusamäe
Committed by
Achilleas Pipinellis
Aug 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: ci/yaml expire_in: the value is in seconds
parent
46494f46
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
app/views/admin/application_settings/_ci_cd.html.haml
app/views/admin/application_settings/_ci_cd.html.haml
+2
-0
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+3
-1
doc/user/admin_area/settings/continuous_integration.md
doc/user/admin_area/settings/continuous_integration.md
+3
-2
No files found.
app/views/admin/application_settings/_ci_cd.html.haml
View file @
cd1e6dd3
...
@@ -38,6 +38,8 @@
...
@@ -38,6 +38,8 @@
.form-text.text-muted
.form-text.text-muted
Set the default expiration time for each job's artifacts.
Set the default expiration time for each job's artifacts.
0 for unlimited.
0 for unlimited.
The default unit is in seconds, but you can define an alternative. For example:
<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'
)
=
f
.
submit
'Save changes'
,
class:
"btn btn-success"
=
f
.
submit
'Save changes'
,
class:
"btn btn-success"
doc/ci/yaml/README.md
View file @
cd1e6dd3
...
@@ -1075,8 +1075,10 @@ keep artifacts forever.
...
@@ -1075,8 +1075,10 @@ keep artifacts forever.
After their expiry, artifacts are deleted hourly by default (via a cron job),
After their expiry, artifacts are deleted hourly by default (via a cron job),
and are not accessible anymore.
and are not accessible anymore.
The value of
`expire_in`
is an elapsed time. Examples of parsable values:
The value of
`expire_in`
is an elapsed time in seconds, unless a unit is
provided. Examples of parsable values:
-
'42'
-
'3 mins 4 sec'
-
'3 mins 4 sec'
-
'2 hrs 20 min'
-
'2 hrs 20 min'
-
'2h20min'
-
'2h20min'
...
...
doc/user/admin_area/settings/continuous_integration.md
View file @
cd1e6dd3
...
@@ -21,8 +21,9 @@ that this setting is set for each job.
...
@@ -21,8 +21,9 @@ that this setting is set for each job.
The default expiration time of the
[
job artifacts
][
art-yml
]
can be set in
The default expiration time of the
[
job artifacts
][
art-yml
]
can be set in
the Admin area of your GitLab instance. The syntax of duration is described
the Admin area of your GitLab instance. The syntax of duration is described
in
[
artifacts:expire_in
][
duration-syntax
]
. The default is
`30 days`
. Note that
in
[
artifacts:expire_in
][
duration-syntax
]
. The default is
`30 days`
. Note that
this setting is set for each job. Set it to 0 if you don't want default
this setting is set for each job. Set it to
`0`
if you don't want default
expiration.
expiration. The default unit is in seconds.
1.
Go to
**Admin area > Settings**
(
`/admin/application_settings`
).
1.
Go to
**Admin area > Settings**
(
`/admin/application_settings`
).
...
...
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