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
b352dbab
Commit
b352dbab
authored
Feb 18, 2016
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-1' into 'master'
Add example of creating build artifacts only for release tags. See merge request !2649
parents
8b918267
150bee38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
README.md
doc/ci/yaml/README.md
+24
-2
No files found.
doc/ci/yaml/README.md
View file @
b352dbab
...
...
@@ -428,8 +428,30 @@ artifacts:
-
binaries/
```
The artifacts will be send after a successful build success to GitLab, and will
be accessible in the GitLab UI to download.
You may want to create artifacts only for tagged releases to avoid filling the
build server storage with temporary build artifacts.
Create artifacts only for tags (
`default-job`
will not create artifacts):
```
yaml
default-job
:
script
:
-
mvn test -U
except
:
-
tags
release-job
:
script
:
-
mvn package -U
artifacts
:
paths
:
-
target/*.war
only
:
-
tags
```
The artifacts will be sent to GitLab after a successful build and will
be available for download in the GitLab UI.
### cache
...
...
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