[Anthill-pro] Warning Status for Long Builds
Brian_Kelly at timeinc.com
Brian_Kelly at timeinc.com
Mon Oct 26 10:08:37 CST 2009
Hi all,
It's been suggested in most Continuous Integration books that if your
build takes more than 10 minutes you should look into what's causing it
to take so long. We've got a few projects where that's happening due to
other projects being svn:externalled in and built as wel (ugh!).
I'd like to add a step at the end of my Build Job to check how long the
build took and apply a "Warnning" status and possibly send out an email.
The problem is I can't seem to find where I can get elapsed build time
from.
* BuildLife has getStartDate() but no equivalent
getEnd/FinishDate().
* There's BuildLifeWorkflowCaseSummary.getDuration (which returns
a "10m 30s" string :-/) but can't figured out how to get from BuildLife
to BuildLifeWorkflowCaseSummary. My guess is that the summary doesn't
exist until the Workflow is finished anyways...
Any ideas or suggestions?
-brian
More information about the Anthill-pro
mailing list