Wiki

The publisher can be used to collect and update statistics for each build in a file. Some of the statistics which would be collected are build durations and test count. At the minimal, the publisher can be configured with just an empty <statistics /> element in the publishers section. This would pick up some default statistics for capturing during the build process.

info

Statistics publisher must come after any File Merge tasks in the publishers section, in case you want to collect statistics from merged files.

The task will generate a statistics.csv and report.xml file in the artifact directory.

The list of statistics to be included in the build. There is a default list of statistics to be included, and this list adds additional statistics to the build. Any statistic defined with include=false will be omitted, even if it is in the default list.

If you want to specify your own, or override the default statistics, it is possible to do so by supplying the name and xpath for the statistics and the corresponding location in the build log to pick the data from.

It is also possible to optionally configure the statistics publisher to generate charts for any metric against different builds, and to even remove them altogether. This feature has been added in version 1.3:

For the statistics configured with 'generateGraph="true"', a graph is generated with different builds on x-axis and the configured metric on y-axis in the artifacts directory named as <statistic name>.png. This chart would still be a very basic representation. For now at least, exporting the report to Excel for charting/analyis might be a better option.