ParaMetrics is a TeamCity plugin that lets you publish any parameter value as a build statistic. To do this, add ParaMetrics as a build feature to your build, specifying which parameter should be published under what statistics key name.
You can add this build feature multiple times.
If the parameter is unset when the build finishes, the statistic is not published.
The statistics are published in the "build finished" phase (see BuildServerAdapter.buildFinished()
).
To build, test, and package the plugin, run mvn package
from the root directory.
To deploy the plugin, copy para-metrics.zip
into the TeamCity plugin directory and restart the server. If you've built locally, get the zip file from target/para-metrics.zip
; otherwise grab the latest released version.