#1
|
|||
|
|||
End project based upon Macro value
How do I quit a project from within a step?
Actually I do not just want to quit the project but fail a step that will then call a specific fail step to send an appropriate e-mail before quitting. I am testing for the existence of data in a macro, and have that piece working, but just seem to be drawing a blank on how to get the step to conditionally fire the fail steps to send the e-mail and quit gracefully. |
#2
|
|||
|
|||
What do you mean 'from within a step'? What kind of step? For a Run Script step or a step script event, set Step.BuildStatus = vbldStepStatFailed or raise an error (Err.Raise in VBScript or throw in JScript).
http://www.kinook.com/VisBuildPro/Ma...riptevents.htm Configure the step to build all or a specific failure subroutine on failure, and if the step fails, the specified failure steps will be built and the build will stop. http://www.kinook.com/VisBuildPro/Ma...tepfailure.htm http://www.kinook.com/VisBuildPro/Ma...restepstab.htm |
#3
|
|||
|
|||
That worked, thanks. I knew I was overlooking something simple.
|
|
|