|
#1
|
|||
|
|||
Force a failure step
I am calling a DOS batch file, that compiles some code. If the compile succeeds or fails the batch file completes successfully. I have written the step that will check the output and look for the failure.
My question is how can I call a Failure step or force a failure if I determine that my compile did fail by looking at the output? I want to stop the build until the problem can be resolved, but the build runs automaticlly at night. Thanks Tom |
#2
|
|||
|
|||
If the compile step in the batch file returns a non-zero exitcode on failure, VBP will detect that (and fail the build) if you call it like
%DOSCMD% call "drive:\path\to\file.bat" and you exit the batch file without executing other commands. As far as forcing a failure, see this FAQ: http://www.kinook.com/Forum/showthread.php?threadid=142 |
|
|