No ccnet does not send a "build failed" email when nant calls <fail>; hence I posted the question. I'm not sure I set this part up correctly.
-----Original Message----- From: Adam Bruss [mailto:abr...@awrcorp.com] Sent: Tuesday, May 10, 2011 10:35 PM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] (no subject) So is ccnet sending a "build failed" email when nant calls <fail>? It should and it always has for me. -----Original Message----- From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Tuesday, May 10, 2011 9:04 PM To: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] (no subject) Yeah I have this; I used to have a pure ccnet script that worked. However, I switched to NAnt and put all my software build tasks in the NAnt script. So my ccnet project looks like this <project> <sourcecontrol ... /> <tasks> <!-- NAnt script does the VS2010 software build --> <nant> .... </nant> </tasks> <publishers>...</publishers> </project> The problem I'm having is I have a <tasks> block that calls a <nant> script, and if the build fails in the NAnt script, it just calls the <fail> block of the NAnt script, and stops. ________________________________________ From: Adam Bruss [abr...@awrcorp.com] Sent: Tuesday, May 10, 2011 8:02 PM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] (no subject) Here's a ccnet example of a publisher block that sends mail. <publishers> <email from="foo...@fubar.com" mailhost="smtp.foobar.com" includeDetails="TRUE"> <users> <user name="frank" group="buildmaster" address="fr...@fubar.com"/> <user name="bob" group="buildmaster" address="b...@fubar.com"/> <user name="jon" group="buildmaster" address="fr...@fubar.com"/> <user name="paul" group="developers" address="devd...@fubar.com"/> </users> <groups> <group name="buildmaster"> <notifications> <notificationType>Always</notificationType> </notifications> </group> <group name="developers"> <notifications> <notificationType>Always</notificationType> </notifications> </group> </groups> </email> </publishers> For us the publishers block is the last thing in the project block. From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Tuesday, May 10, 2011 4:07 PM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] (no subject) I've started using ccnet with NAnt, where my ccnet script calls a NAnt script to do the actual build. However, I want ccnet to send an e-mail, not nant, when a script fails. I have a <publisher> ccnet block that I want executed that sends the e-mail. -chris ***This e-mail message is intended only for the above named recipient(s) and may contain information that is sensitive or proprietary. If you have received this message in error or are not the named recipient(s), please immediately notify the sender, delete this e-mail message without making a copy and do not disclose or relay this e-mail message to anyone.*** ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users