|
CruiseControl.NET : Statistics Publisher
This page last changed on Nov 30, 2010 by ccnet-doc-gen.
Statistics PublisherThe 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.
The task will generate a statistics.csv and report.xml file in the artifact directory. VersionAvailable from version 1.0 ExamplesMinimalist example <statistics />
Configuration Elements
NotesIf 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. <statistics> <statisticList> <statistic name="metric_name" xpath="xpath expression" /> <firstMatch name="metric_name" xpath="xpath expression" /> </statisticList> </statistics> 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: <statistics> <statisticList> <statistic name="metric_name" xpath="xpath expression" generateGraph="true" include="true" /> <firstMatch name="metric_name" xpath="xpath expression" include="false" /> </statisticList> </statistics> 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.
|
| Document generated by Confluence on Jan 23, 2011 08:52 |