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
Léo-Paul Géneau
gitlab-ce
Commits
cf9c5b54
Commit
cf9c5b54
authored
Jun 10, 2016
by
Kamil Trzcinski
Committed by
Phil Hughes
Jun 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added documentation to artifacts expire
parent
421be01d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
config/initializers/1_settings.rb
config/initializers/1_settings.rb
+1
-1
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+35
-0
No files found.
config/initializers/1_settings.rb
View file @
cf9c5b54
...
...
@@ -280,7 +280,7 @@ Settings.cron_jobs['stuck_ci_builds_worker'] ||= Settingslogic.new({})
Settings
.
cron_jobs
[
'stuck_ci_builds_worker'
][
'cron'
]
||=
'0 0 * * *'
Settings
.
cron_jobs
[
'stuck_ci_builds_worker'
][
'job_class'
]
=
'StuckCiBuildsWorker'
Settings
.
cron_jobs
[
'expire_build_artifacts_worker'
]
||=
Settingslogic
.
new
({})
Settings
.
cron_jobs
[
'expire_build_artifacts_worker'
][
'cron'
]
||=
'
0 0
* * *'
Settings
.
cron_jobs
[
'expire_build_artifacts_worker'
][
'cron'
]
||=
'
50 *
* * *'
Settings
.
cron_jobs
[
'expire_build_artifacts_worker'
][
'job_class'
]
=
'ExpireBuildArtifactsWorker'
Settings
.
cron_jobs
[
'repository_check_worker'
]
||=
Settingslogic
.
new
({})
Settings
.
cron_jobs
[
'repository_check_worker'
][
'cron'
]
||=
'20 * * * *'
...
...
doc/ci/yaml/README.md
View file @
cf9c5b54
...
...
@@ -31,6 +31,7 @@ If you want a quick introduction to GitLab CI, follow our
-
[
artifacts
](
#artifacts
)
-
[
artifacts:name
](
#artifacts-name
)
-
[
artifacts:when
](
#artifacts-when
)
-
[
artifacts:expire_in
](
#artifacts-expire_in
)
-
[
dependencies
](
#dependencies
)
-
[
before_script and after_script
](
#before_script-and-after_script
)
-
[
Hidden jobs
](
#hidden-jobs
)
...
...
@@ -678,6 +679,40 @@ job:
when
:
on_failure
```
#### artifacts:expire_in
>**Note:**
Introduced in GitLab 8.9 and GitLab Runner v1.3.0.
`artifacts:expire_in`
is used to remove uploaded artifacts after specified time.
By default artifacts are stored on GitLab forver.
`expire_in`
allows to specify after what time the artifacts should be removed.
The artifacts will expire counting from the moment when they are uploaded and stored on GitLab.
After artifacts uploading you can use the
**Keep**
button on build page to keep the artifacts forever.
Artifacts are removed every hour, but they are not accessible after expire date.
The value of
`expire_in`
is a elapsed time. The example of parsable values:
-
'3 mins 4 sec'
-
'2 hrs 20 min'
-
'2h20min'
-
'6 mos 1 day'
-
'47 yrs 6 mos and 4d'
-
'3 weeks and 2 days'
---
**Example configurations**
To expire artifacts after 1 week from the moment that they are uploaded:
```
yaml
job
:
artifacts
:
expire_in
:
1 week
```
### dependencies
>**Note:**
...
...
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