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
b72f00c7
Commit
b72f00c7
authored
Feb 15, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docs to reflect current behaviour
parent
cfd839d6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
app/models/application_setting.rb
app/models/application_setting.rb
+1
-1
app/views/admin/application_settings/_form.html.haml
app/views/admin/application_settings/_form.html.haml
+3
-1
doc/user/admin_area/settings/continuous_integration.md
doc/user/admin_area/settings/continuous_integration.md
+6
-5
No files found.
app/models/application_setting.rb
View file @
b72f00c7
...
...
@@ -310,7 +310,7 @@ class ApplicationSetting < ActiveRecord::Base
if
ChronicDuration
.
parse
(
default_artifacts_expire_in
).
nil?
errors
.
add
(
:default_artifacts_expire_in
,
"can't be 0. Leave it blank for
unlimited
"
)
"can't be 0. Leave it blank for
no expiration
"
)
false
else
true
...
...
app/views/admin/application_settings/_form.html.haml
View file @
b72f00c7
...
...
@@ -220,7 +220,9 @@
=
f
.
text_field
:default_artifacts_expire_in
,
class:
'form-control'
.help-block
Set the default expiration time for each job's artifacts
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'user/admin_area/settings/continuous_integration'
,
anchor:
'default-artifacts-expiration'
)
=
surround
'('
,
')'
do
=
link_to
'syntax'
,
help_page_path
(
'ci/yaml/README'
,
anchor:
'artifactsexpire_in'
)
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'user/admin_area/settings/continuous_integration'
,
anchor:
'default-artifacts-expiration-time'
)
-
if
Gitlab
.
config
.
registry
.
enabled
%fieldset
...
...
doc/user/admin_area/settings/continuous_integration.md
View file @
b72f00c7
...
...
@@ -16,14 +16,14 @@ Note that this setting is set for each job.
1.
Hit
**Save**
for the changes to take effect.
[
art-yml
]:
../../../administration/build_artifacts
.md
[
art-yml
]:
../../../administration/build_artifacts
## Default artifacts expiration time
The default expiration time of the
[
build artifacts
][
art-yml
]
can be set in
the Admin area of your GitLab instance. The
value is in
*days*
and the
default is 30 days. Note that this setting is set for each job. Set it to
0 as never expired by default
.
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
this setting is set for each job. Leave it blank for no default expiration
.
1.
Go to
**Admin area > Settings**
(
`/admin/application_settings`
).
...
...
@@ -35,4 +35,5 @@ default is 30 days. Note that this setting is set for each job. Set it to
1.
Hit
**Save**
for the changes to take effect.
[
art-yml
]:
../../../administration/build_artifacts.md
[
art-yml
]:
../../../administration/build_artifacts
[
duration-syntax
]:
../../../ci/yaml/README#artifactsexpire_in
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