Bugs item #1247125, was opened at 2005-07-28 16:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1247125&group_id=31650
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Functions
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Submitted By: Steve C. (steve_coombes)
Assigned to: Nobody/Anonymous (nobody)
Summary: MailLogger does not email failed builds
Initial Comment:
Using NAnt 0.85 rc3 with NAntContrib 0.85 rc3
MailLogger function will not execute send mail on build
failure. I have narrowed down the code to almost
exclusively this functionality except added a Target with
a task to load a non-existent file to cause the build to
fail. Mail is sent as expected when the build succeeds
(by commenting out errant line), but no email is sent
when the build fails.
Called the build file with this command line:
nant -f:fail.build -logger:NAnt.Core.MailLogger -verbose
MyTarget
Entire build script (with emails/servers changed to
protect the guilty):
<?xml version="1.0"?>
<project name="Build" default="MyTarget" basedir=".">
<!-- Call if build succeeds -->
<property name="nant.onsuccess"
value="Success" />
<!-- Call if build breaks -->
<property name="nant.onfailure"
value="Failure" />
<property name="MailLogger.mailhost"
value="MyServer" />
<property name="MailLogger.success.notify"
value="true" />
<property name="MailLogger.failure.notify"
value="true" />
<property
name="MailLogger.success.subject" value="BUILD
SUCCESS" />
<property name="MailLogger.failure.subject"
value="BUILD FAILURE" />
<property name="MailLogger.from"
value="[EMAIL PROTECTED]" />
<property name="MailLogger.success.to"
value="[EMAIL PROTECTED]" />
<property name="MailLogger.failure.to"
value="[EMAIL PROTECTED]" />
<target name="MyTarget" >
<echo message="In Target"/>
<loadfile
file="message.txt"
property="message" />
</target>
<target name="Success" >
<echo message="In Success"/>
</target>
<target name="Failure" >
<echo message="In Failure"/>
</target>
</project>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1247125&group_id=31650
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers