For "Fail build on metric change", how can one add a custom metric to the set of metrics available in the pull-down list of metrics?
Not much of a discussion starter. Is this a reasonable topic for this venue?
For "Fail build on metric change", how can one add a custom metric to the set of metrics available in the pull-down list of metrics?
If this is not already possible, it seems like potentially low hanging fruit for an enhancement.
Please sign in to leave a comment.
Custom metrics can be used to fail builds see the end of the section 'Fail build on metric change' http://confluence.jetbrains.com/display/TCD8/Build+Failure+Conditions#BuildFailureConditions-failmetricchange What you need to do is publish a build statistic either using service messages or writing it to a teamcity-info.xml file, this is documented here http://confluence.jetbrains.com/display/TCD8/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ReportingBuildStatistics then add the statistic as a build metric option this is described in the first link.
Rod
Thanks so much. This is exactly what I was looking for. Missed it in my search. My wife calls this Male Pattern Blindness, which most commonly occurs when looking in the fridge.