Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-27-2007, 10:39 AM
omar_ita omar_ita is online now
Registered User
 
Join Date: 08-01-2007
Location: The Roman Empire - Italy
Posts: 7
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
Reply With Quote
  #2  
Old 08-27-2007, 10:48 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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.
Reply With Quote
  #3  
Old 08-27-2007, 11:09 AM
omar_ita omar_ita is online now
Registered User
 
Join Date: 08-01-2007
Location: The Roman Empire - Italy
Posts: 7
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..
Reply With Quote
  #4  
Old 08-27-2007, 11:51 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
See attached sample.
Attached Files
File Type: bld failedsteps.bld (1.7 KB, 1782 views)
Reply With Quote
  #5  
Old 08-28-2007, 02:34 AM
omar_ita omar_ita is online now
Registered User
 
Join Date: 08-01-2007
Location: The Roman Empire - Italy
Posts: 7
Smile

Great! Thank you! I got confused about the concept of macro but now it's clear for me!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 09:33 AM.


Copyright © 1999-2023 Kinook Software, Inc.