BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
application_setting.rb
app/models/application_setting.rb
+1
-1
_form.html.haml
app/views/admin/application_settings/_form.html.haml
+3
-1
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
...
@@ -310,7 +310,7 @@ class ApplicationSetting < ActiveRecord::Base
if
ChronicDuration
.
parse
(
default_artifacts_expire_in
).
nil?
if
ChronicDuration
.
parse
(
default_artifacts_expire_in
).
nil?
errors
.
add
(
:default_artifacts_expire_in
,
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
false
else
else
true
true
...
...
app/views/admin/application_settings/_form.html.haml
View file @
b72f00c7
...
@@ -220,7 +220,9 @@
...
@@ -220,7 +220,9 @@
=
f
.
text_field
:default_artifacts_expire_in
,
class:
'form-control'
=
f
.
text_field
:default_artifacts_expire_in
,
class:
'form-control'
.help-block
.help-block
Set the default expiration time for each job's artifacts
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
-
if
Gitlab
.
config
.
registry
.
enabled
%fieldset
%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.
...
@@ -16,14 +16,14 @@ Note that this setting is set for each job.
1.
Hit
**Save**
for the changes to take effect.
1.
Hit
**Save**
for the changes to take effect.
[
art-yml
]:
../../../administration/build_artifacts
.md
[
art-yml
]:
../../../administration/build_artifacts
## Default artifacts expiration time
## Default artifacts expiration time
The default expiration time of the
[
build artifacts
][
art-yml
]
can be set in
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
the Admin area of your GitLab instance. The
syntax of duration is described
default is 30 days. Note that this setting is set for each job. Set it to
in
[
artifacts:expire_in
][
duration-syntax
]
. The default is
`30 days`
. Note that
0 as never expired by default
.
this setting is set for each job. Leave it blank for no default expiration
.
1.
Go to
**Admin area > Settings**
(
`/admin/application_settings`
).
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
...
@@ -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.
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