Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Force a failure step (https://www.kinook.com/Forum/showthread.php?t=417)

Too_Tall_Crown_Victoria 04-26-2004 12:16 PM

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

kinook 04-26-2004 12:34 PM

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


All times are GMT -5. The time now is 05:05 PM.


Copyright © 1999-2023 Kinook Software, Inc.