Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Frequently Asked Questions > Advanced
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-12-2004, 11:52 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
How can I continue the build on failure and capture the failure information?

First, select the Continue building radio button on the More tab of the Step Properties dialog so that the build will continue if the step fails.

For processing the failure info:

Option #1: Check the Build failure steps option and capture or process the failed step info in steps of the Failure Steps pane (you can specify which failure steps to build on the General tab or leave blank to build all failure steps). The failure step object will be available in the FailedStep object, and the FAILSTEP_OUTPUT system macro will contain the failed step's output.

Option #2: Uncheck the Build failure steps checkbox and capture or process the failed step info in the vbld_StepDone script event. When a step marked to ignore failure completes, the Step.BuildStatus property will contain the success/failure status of the step, and the LASTSTEP_OUTPUT system macro will contain the step's output. In the step's vbld_StepDone script event, call a script function to check the status and append the information for use at the end of the build (for instance, to send in an email message). The attached sample demonstrates this.

Note: The step properties and script event code can be edited for multiple steps at once by multi-selecting the steps and editing the step properties.
Attached Files
File Type: bld failed_steps.bld (4.2 KB, 6088 views)
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 Off
[IMG] code is Off
HTML code is On



All times are GMT -5. The time now is 05:13 AM.


Copyright © 1999-2023 Kinook Software, Inc.