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
Tatuya Kamada
gitlab-ce
Commits
e6209a40
Commit
e6209a40
authored
Jun 10, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added description of artifacts:when
parent
81dfabad
Changes
1
Hide 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 @
e6209a40
...
...
@@ -30,6 +30,7 @@ If you want a quick introduction to GitLab CI, follow our
-
[
when
](
#when
)
-
[
artifacts
](
#artifacts
)
-
[
artifacts:name
](
#artifacts-name
)
-
[
artifacts:when
](
#artifacts-when
)
-
[
dependencies
](
#dependencies
)
-
[
before_script and after_script
](
#before_script-and-after_script
)
-
[
Hidden jobs
](
#hidden-jobs
)
...
...
@@ -651,6 +652,32 @@ job:
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
>**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