Superseded by artifact options in 2019.1+: https://www.jetbrains.com/help/teamcity/what-s-new-in-teamcity-2019-1.html#WhatsNewinTeamCity2019.1-Buildartifactspublishingoptions
SBA supports "only on failure" and "only on success" of the target configuration. It was written in support of the use cases here: TW-12194 - Option to prevent artifacts from being published for a failed build.
Add the feature to any build config or template:
Any missing files are reported in the same way as standard publishes:
Publishes are subject to the same issues as service messages. Most notably, publishes made in separate "passes" will overwrite archives (e.g .zip files) rather than updating them. A "pass" can be:
- Publishes from general settings of the configuration (once on build finish)
- Publishes from service messages (as above, can happen at any time)
- Publishes from this plugin (once on build finish, regardless of how many features are present)
This plugin is built with Maven. To compile it, run the following in the root folder:
mvn package