Skip to content

A TeamCity plugin to publish artifacts based on the status of a build

License

Notifications You must be signed in to change notification settings

novemberdobby/statusBasedArtifacts

Repository files navigation

Note

Superseded by artifact options in 2019.1+: https://www.jetbrains.com/help/teamcity/what-s-new-in-teamcity-2019-1.html#WhatsNewinTeamCity2019.1-Buildartifactspublishingoptions

StatusBasedArtifacts - TeamCity plugin to optionally publish artifacts based on the build status

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.

Usage

Add the feature to any build config or template: build_feature

Missing artifacts

Any missing files are reported in the same way as standard publishes: missing_files

Note on archives

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)

Building

This plugin is built with Maven. To compile it, run the following in the root folder:

mvn package

About

A TeamCity plugin to publish artifacts based on the status of a build

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages