Tim Mayert wrote:
I have automated 3 of my NAnt builds to run at night to make sure they
work fine and to work out all the bugs before we go to production on
the nightly builds. So far the builds seem to be working already and
the confirmation emails, that are produced at the end of each build,
do for the most part work. But sometimes I do not get the
confirmation email in the morning and this is random as to what build
and does not matter if the build failed or completed.
All my builds are set up to perform the mail task at the end of the
build with either a build failure and the resulting error log or a
build completion. Lately I have been receiving 2 out of the 3 email.
So I check the log of the one that did not email and at the end of the
log it shows that it performs the email task and completes without
errors, but I just do not get the email. Now again this seems to
happen randomly so I do not have any good idea as to why the email
does not get sent.
Has anyone seen this before and if so is there a way to determine why
the email did not get though? This is the last issue I need to solve
before the nightly builds can become fully functional.
Is it at all possible that the problem is at the mail server end of
things? If you have ready access to the mail server logs, that may
help. Who knows, it could be as simple as a spam filter on the server.
Is it always the same one of the three that fails to send the email, or
does it change? If it's the same one all the time, then the questions
that come to mind are:
1. Are all three builds running under the same user account?
2. Are they all running the same initialization (i.e. setting
properties and environment variables)?
3. Is it possible that the third build has the wrong mailhost, from
address, or to list, if the answer to either of the first two questions
is yes?
If these don't help, then I suggest trying verbose mode on the builds.
I'm not sure what the mail task display in verbose mode, but you may be
able to compare the verbose output from both the good and bad emails to
see if there's a difference.
Gary
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users