Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-30-2004, 04:39 PM
MHolmes MHolmes is online now
Registered User
 
Join Date: 09-27-2004
Location: Houston, TX
Posts: 6
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...
Reply With Quote
  #2  
Old 09-30-2004, 05:35 PM
kevina kevina is online now
Registered User
 
Join Date: 03-27-2003
Posts: 825
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):

<step action='Run Script' type='0'>
<Language>VBScript</Language>
<Script>x = 1 / 0</Script>
<ignorefail type='11'>-1</ignorefail>
<indent type='3'>1</indent>
<name>Fail Step (viewing status in StepDone)</name>
<script><![CDATA[
Function vbld_StepDone()
Builder.LogMessage Application.ExpandMacros("%LASTSTEP_STATUS%")
End Function
]]></script>
</step>
Reply With Quote
  #3  
Old 09-30-2004, 05:39 PM
MHolmes MHolmes is online now
Registered User
 
Join Date: 09-27-2004
Location: Houston, TX
Posts: 6
Awsome! Thank you very much
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



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


Copyright 1999-2019 Kinook Software, Inc.