PDA

View Full Version : Error summary


omar_ita
08-27-2007, 10:39 AM
Hello,

is it possible to send an email at the end of a build with a unique message listing all failed steps? The steps are obviously set to Continue on failure but if I define a failure step (send email) I get an email for each failed step.

Thanks in advance

kinook
08-27-2007, 10:48 AM
In the (continue) failure step, append the FAILSTEP info to a temporary macro, then include that macro's contents in a Send Mail step at the end of the build.

omar_ita
08-27-2007, 11:09 AM
Yes I had the same idea. So I defined a FAILED_STEPS in the Project (Macros). In Failure steps is a Run Script (vbscript):

FAILED_STEPS = FAILED_STEPS + " - " + %FAILSTEP_NAME%

At the end of build steps there is a Run script:

Builder.LogMessage "Result: " + FAILED_STEPS

The result is always an empty string.. Probably I'm get confusing about macros and variables..

kinook
08-27-2007, 11:51 AM
See attached sample.

omar_ita
08-28-2007, 02:34 AM
Great! Thank you! I got confused about the concept of macro but now it's clear for me!