Tim Rupp 7ed5be4b2d Adds onlyIfSuccessful to ArtifactArchiver publisher
In the Post-build Actions section there is a checkbox for "Archive artifacts
only if build is successful" that does not appear to be affected by the
latest-only yaml key, in Jenkins 1.620, that generates the latestOnly tag.

This patch adds a new yaml key for if-only-success that generates a tag for
onlyIfSuccessful that influences the mentioned checkbox.

Change-Id: I86c50d5c7a9e2234ae9cf4b3b59de7292d1dbaa0
2015-07-31 00:10:16 -07:00

7 lines
129 B
YAML

publishers:
- archive:
artifacts: '*.tar.gz'
allow-empty: true
only-if-success: true
fingerprint: true