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
iv
gitlab-ce
Commits
897bc597
Commit
897bc597
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 description of artifacts:when
parent
ffe8dbde
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+27
-0
No files found.
doc/ci/yaml/README.md
View file @
897bc597
...
@@ -30,6 +30,7 @@ If you want a quick introduction to GitLab CI, follow our
...
@@ -30,6 +30,7 @@ If you want a quick introduction to GitLab CI, follow our
-
[
when
](
#when
)
-
[
when
](
#when
)
-
[
artifacts
](
#artifacts
)
-
[
artifacts
](
#artifacts
)
-
[
artifacts:name
](
#artifacts-name
)
-
[
artifacts:name
](
#artifacts-name
)
-
[
artifacts:when
](
#artifacts-when
)
-
[
dependencies
](
#dependencies
)
-
[
dependencies
](
#dependencies
)
-
[
before_script and after_script
](
#before_script-and-after_script
)
-
[
before_script and after_script
](
#before_script-and-after_script
)
-
[
Hidden jobs
](
#hidden-jobs
)
-
[
Hidden jobs
](
#hidden-jobs
)
...
@@ -651,6 +652,32 @@ job:
...
@@ -651,6 +652,32 @@ job:
untracked
:
true
untracked
:
true
```
```
#### artifacts:when
>**Note:**
Introduced in GitLab 8.9 and GitLab Runner v1.3.0.
`artifacts:when`
is used to upload artifacts on build failure or despite the
failure.
`artifacts:when`
can be set to one of the following values:
1.
`on_success`
- upload artifacts only when build succeeds. This is the default
1.
`on_failure`
- upload artifacts only when build fails
1.
`always`
- upload artifacts despite the build status
---
**Example configurations**
To upload artifacts only when build fails
```
yaml
job
:
artifacts
:
when
:
on_failure
```
### dependencies
### dependencies
>**Note:**
>**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