Quote:
if a macro is referenced in the Project Steps, but has not been defined, build fail processing happens but the FAILSTEP_NAME and FAILSTEP_OUTPUT macros are blank.
|
Good catch. Apparently not too common since it looks like it's always worked this way and you're the first to notice. We'll add it to the fix list.
Quote:
if a macro is referenced in the Failure Steps, but has not been defined, the build stops and the failure processing is not completed...A fix would be for VBP to treat all undefined macros in failure step processing as defined but blank.
|
Even that wouldn't help much if the To, Server, or other critical fields of the Send Mail action had the undefined macros. You could put the Send Mail step first (or mark all prior failure steps to ignore failure) and hard-code the Send Mail step properties to known good values. Of course, even that can't guard against things like the mail server being down or unavailable. As a backup you could do a NET SEND if the Send Mail step fails.