You are viewing the documentation of TeamCity 9.x, which is not the most recently released version of TeamCity.
View this page in the latest documentation or refer to the listing to choose the documentation corresponding to your TeamCity version.


Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

In TeamCity you can adjust the conditions when a build should be marked as failed in the Failure Conditions section of the of the Build Configuration Settings page.

On this page:

Table of Contents

Common build failure conditions


To add such build failure condition to your build configuration, click Add build failure condition and select from the list:


You can disable a build failure condition temporarily or permanently at any time, even if it is inherited from a build configuration template.


You can add your own build metric. To do so, you need to modify the TeamCity configuration file <TeamCity Data Directory>/config/main-config.xml and add the following section under "server" node there:

Code Block

<statisticValue key="myMetric" description="build metric for number of files"/>