提交 d0455600 编写于 作者: M Mart Sõmermaa 提交者: Mart Somermaa

Add example of creating build artifacts only for release tags.

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册