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:
<build-metrics> <statisticValue key="myMetric" description="build metric for number of files"/> </build-metrics>