Bugs item #1247125, was opened at 2005-07-28 16:25
Message generated for change (Comment added) made by steve_coombes
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: Core
Group: 0.85
Status: Closed
Resolution: Works For Me
Priority: 5
Submitted By: Steve C. (steve_coombes)
Assigned to: Gert Driesen (drieseng)
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>
----------------------------------------------------------------------
>Comment By: Steve C. (steve_coombes)
Date: 2005-08-19 11:19
Message:
Logged In: YES
user_id=1320427
For the record - this function did work as written but our mail
server filter was tossing the messages.
----------------------------------------------------------------------
Comment By: Steve C. (steve_coombes)
Date: 2005-08-19 11:19
Message:
Logged In: YES
user_id=1320427
For the record - this function did work as written but our mail
server filter was tossing the messages.
----------------------------------------------------------------------
Comment By: Gert Driesen (drieseng)
Date: 2005-07-28 23:49
Message:
Logged In: YES
user_id=707851
This is working just fine. Are you sure you've specified the
NAnt.Core.MailLogger on the command line:
NAnt.exe -logger:NAnt.Core.MailLogger .....
----------------------------------------------------------------------
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