Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   Advanced (https://www.kinook.com/Forum/forumdisplay.php?f=16)
-   -   How can I continue the build on failure and capture the failure information? (https://www.kinook.com/Forum/showthread.php?t=437)

kinook 05-12-2004 11:52 AM

How can I continue the build on failure and capture the failure information?
 
1 Attachment(s)
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.


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


Copyright © 1999-2023 Kinook Software, Inc.