TeamCity 2020.1 Help

Configuring Retry Build Triggers

The retry build trigger automatically adds a new build to the queue if the previous build of the current build configuration has failed.

The following settings are available for the retry build trigger:

SettingDescription
Seconds to waitSpecify seconds to wait before adding a new build to the queue.
Number of attempts to retry the buildSpecify how many times the trigger will try to rerun the failing build. Leave blank to retry unlimited times until the build is successful.
Trigger a new build with the same revisions

With this option enabled, the retry trigger will rerun a failed build using the same source revisions.

This option helps identify build problems that do not depend on the build code: for example, if there are flaky tests in the build configuration or if there was some unforeseen agent compatibility issue.
If the build with the trigger is a part of a build chain, all the successful builds from the previous chain run will be reused and all the failed dependency builds, that could have contributed to the failure of the dependent build, will be rebuilt on the same revision.
If any build parameters or comments are specified in the custom build settings, they will be applied to the following build runs initiated by the retry trigger.

Put the newly triggered builds to the queue top

With this option enabled, retried builds will always be put to the queue top.

Branch filter

Apply a branch filter to rerun failed builds only in branches that match the specified criteria.

Last modified: 27 October 2020