#1
|
|||
|
|||
How can I force the build to abort from script?
Option #1: Add an Exit 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 to conditionally abort the build.
Option #2: Use VBScript code of: Step.BuildStatus = vbldStepStatFailed in a step script event (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: Code:
Err.Raise 1, "", "Error message" Code:
throw "Error"; |
|
|