View Single Post
Old 09-22-2006, 05:42 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,757
Hmmm, it was always documented and designed that the failed step info be available only from failure steps (if it did work, it was only incidental). What sort of additional reporting are you doing in this situation (if a step does fail but that condition is ignored, the failure information and status is already logged automatically)?

Some options:

1a) If all you're doing is writing extra info to the log, you can do that in the step's vbld_StepDone script event (of the step whose failure would be ignored):

If Step.BuildStatus = vbldStepStatFailed Then
   Builder.LogMessage "Error building step " & Step.Name ' etc.
End If

1b) Centralize this logging in the global vbld_StepDoneProject script event (instead of for each step whose failure is ignored):

If Step.ContinueOnFailure And Step.BuildStatus = vbldStepStatFailed Then
   ' log failure info
End If
2) If you're using extra steps for this failure reporting (for instance, to send mail, etc.), configure the steps to build some failure steps (for instance, a failure subroutine called Report Failure) to report the additional info but continue building, rather than utilizing the failed step info from Project steps (this might also simplify your code if you have multiple steps that you're checking and reporting failure for).
Reply With Quote