Demonstrates sending an email including all failed (ignore failure) steps and their output at the end of the build. Requires VBScript to be the default script language.
Project steps
FAILED_STEPS
Initialize FAILED_STEPS temp macro to an empty string
1
init macro
-1
Release
-1
c:\x.sln
-1
-1
1
ignore failure build1
-1
Release
-1
c:\y.sln
-1
-1
1
ignore failure build2
0, Application.ExpandMacros("%FAIL_OUTPUT_FILE%"), "")]]]>
%FROM_EMAIL%
0, "Steps that failed to build (error info attached): " & vbld_AllMacros()("FAILED_STEPS"), "") ]]]>
25
localhost
Build Completed
10
%TO_EMAIL%
Notify of build completion, including information about any steps that failed to build
1
send mail
FAIL_OUTPUT_FILE
%TEMP%\Fail.txt