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)
-   -   vbld_StepDone event and Step.BuildStatus (https://www.kinook.com/Forum/showthread.php?t=585)

MHolmes 09-30-2004 03:39 PM

vbld_StepDone event and Step.BuildStatus
 
Our build process is a bit unique in that we log our failed build steps to some various media (via a COM component that I wrote in C# w/ COM interop). Basically, when a step fails, we don't want the Visual Build build process to stop, we simply want to use a script to instanciate this component, call a method on it, and continue with the build.

The caveat to this is that there are certain projects we have that WILL fail the entire build. We keep our "what to build list" in special text files that we read in using Visual Build's facilities. It's easy enough to know what is and isn't critical, and what to build.

The problem is that Visual Build sets the Step.BuildStatus value to 0 (or succesful) if the build succeeds OR it's set to ignore failure. This is an issue with us. We need to be able to mark the node as "Ignore Fail", but still be able to detect relevant failure in the event scripts.

Is this possible? This is stopping me from really stream lining our build process...

kevina 09-30-2004 04:35 PM

You can look at the LASTSTEP_STATUS which will be set to a non-zero code when the steps failed even if Ignore fail is set to True.

See this sample step for an example (See the vbld_StepDone event script code):


VBScript

-1
1
Fail Step (viewing status in StepDone)


MHolmes 09-30-2004 04:39 PM

Awsome! Thank you very much :)


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


Copyright © 1999-2023 Kinook Software, Inc.