Commit d0455600 authored by Mart Sõmermaa's avatar Mart Sõmermaa Committed by Mart Somermaa

Add example of creating build artifacts only for release tags.

parent f5860ce6
......@@ -424,6 +424,28 @@ artifacts:
- binaries/
```
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 send after a successful build success to GitLab, and will
be accessible in the GitLab UI to download.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment