kinook
06-27-2003, 07:41 AM
Option #1: Add an Exit (http://www.kinook.com/VisBuildPro/Manual/exitaction.htm) step configured with an exit status of Failure (to build failure steps) or Cancel (to stop without building failure steps). The step can use a conditional build rule (http://www.kinook.com/VisBuildPro/Manual/buildrules.htm) to conditionally abort the build.
Option #2: Use VBScript code of:
Step.BuildStatus = vbldStepStatFailed
in a step script event (http://www.kinook.com/VisBuildPro/Manual/scriptevents.htm) (accessed by clicking the Script Editor button on the step properties dialog, clicking the Events button, and choosing a step event).
Option #3: Use VBScript code of:
Err.Raise 1, "", "Error message"
or the following Jscript code (note: the error message thrown doesn't get logged for JScript):
throw "Error";
The code can be placed in a script function, the code of a Run Script (http://www.kinook.com/VisBuildPro/Manual/runscript.htm) step, or in a step event function.
Option #2: Use VBScript code of:
Step.BuildStatus = vbldStepStatFailed
in a step script event (http://www.kinook.com/VisBuildPro/Manual/scriptevents.htm) (accessed by clicking the Script Editor button on the step properties dialog, clicking the Events button, and choosing a step event).
Option #3: Use VBScript code of:
Err.Raise 1, "", "Error message"
or the following Jscript code (note: the error message thrown doesn't get logged for JScript):
throw "Error";
The code can be placed in a script function, the code of a Run Script (http://www.kinook.com/VisBuildPro/Manual/runscript.htm) step, or in a step event function.