Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Error summary (https://www.kinook.com/Forum/showthread.php?t=2962)

omar_ita 08-27-2007 10:39 AM

Error summary
 
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

1 Attachment(s)
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!


All times are GMT -5. The time now is 12:18 AM.


Copyright © 1999-2023 Kinook Software, Inc.