[Anthill] Build status
Peter Kofler
Peter.Kofler at herold.at
Wed Nov 3 09:01:38 CST 2004
Hi,
we use a similar approach, but just for the emails.
We have compile, an xml syntax check, junit test
and PMD code analysis checks. If anything fails the
build fails and is red in the Anthill page. Depending
on the log contents the subject of the email is changed,
something like
// check cause
if (!_buildDef.getErrorFlag()) {
emailSubject.append(" build succeeded");
} else {
if(buildLogString.indexOf("Compile failed")>-1) {
emailSubject.append(" Javac compile ");
} else if(buildLogString.indexOf("JUnit test FAILED")>-1) {
emailSubject.append(" JUnit test ");
} else if(buildLogString.indexOf("Could not validate
document")>-1) {
emailSubject.append(" XML validation ");
} else if(buildLogString.indexOf("Stopping build since PMD
found")>-1) {
emailSubject.append(" PMD check ");
} else {
emailSubject.append(" build ");
}
emailSubject.append("failed");
}
subject = emailSubject.toString();
Works fine for us. Should be possible to use a different color
for each state, but the email subject was enough for us at the
moment.
Greetings,
Peter
>>> jim.hague at acm.org 03.11.2004 15:05:49 >>>
As I understand it, Anthill has two build result states, Green (build
succeeded) and Red (build failed).
In an ideal world I'd also like an Orange state - build succeeded but
with
warnings. As far as I can see the only way to determining this state
would
be to search the build log for 'warning' strings, so compiler specific
patterns would be required.
Before I even think of looking at this, has anyone ever done any
experimenting along these lines?
_______________________________________________
Anthill mailing list
Anthill at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill
More information about the Anthill
mailing list