PDA

View Full Version : Build step not being skipped


Murrgon
08-04-2005, 03:59 PM
I have a number of build steps that are set to run only if the %Build_TestSucceeded% macro is set to "True". The first six steps with this rule are skipped just fine, but the seventh one gives me a VBScript error in the vbld_StepDone function. Is this function being run regardless of whether the build step was actually executed?

Thanks

kinook
08-04-2005, 05:51 PM
The vbld_StepDone event still fires if a step's action is skipped. If you need to execute some logic in the event only if it wasn't skipped, use code like this:

If Step.BuildStatus <> vbldStepStatSkipped Then
' logic if not skipped goes here
End If

Murrgon
08-05-2005, 08:45 AM
Okay, I got around that problem. However, if I have the "Repeat step while condition is true" check box enabled, does it execute all of the vbld_StepStart() .. vbld_StepDone() functions for each iteration, or just once for the entire number of times it loops?

kevina
08-05-2005, 02:57 PM
The events will each fire once for every step iteration.