Icon

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

 

Versions Compared

Key

  • 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:

Tip

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

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

...