CC Patch - BuildHistoryPublisher
I have attached the code for a BuildHistoryPublisher, that maintains an XML log of build summary information.
This makes it easy to generate a summary page showing build history with (for example) green/red test bars for each build, without having to process all the XML files in the log directory.
I am doing some work on the JSP in relation to this, but I will submit that separately once people have had a look at this.
BuildHistoryPublisher also contains a main method that allows it to be run over a set of pre-existing log files to bootstrap the history file.
The XML generated looks like:
<buildhistory>;
<build logFileName=”log20020206120000.xml” error=”An error message”>
<testinfo tests=”5″ errors=”11″ failures=”10″ time=”1.2″ />
<info>
… a copy of the info element that CC passes to the publisher
&llt;/info>
</build>
….
</buildhistory>