I am using the feture Fail Build on metric change to mark builds as failed when a custom Build Metric changes.
1. One of the metrics that I am trending is a percentage value (percentage of static code violations). I have added this statistic into the TeamCity configuration file <TeamCity Data Directory>/config/main-config.xml as suggested in the Build Failure Conditions documentation:
<statisticValue key="myMetric" description="build metric for number of files"/>
How can I have this build statistic value display as a floating point percentage? (i.e. How do I change the metrics for build statistics?) It is currently rounding the value to an integer. I see other build statistics (i.e. Success Rate) presented as a percentage, so I can assume it can be done.
2. The metric change failure condition I have set is to "compared to the last successful build".
Can anyone provide more insight into specifics of what "last successful" means? We are using git-flow and have multuple branches building for each TeamCity project. Does this failure condition only compare against the last successful build on the same branch? Or could a build on the master branch be compared to the last successful build on a feature branch (this is not desired.)? Thanks,