In a similar situation I throw an exception that is handled by the "Failure Steps" processing. Add a script step to do the trick:
for VBScript:
Err.Raise 1, Step.Name, "Forcing build failure..."
for JScript:
throw "failure"
(with thanks for telling me how!)
|