This is off topic here and you may want to copy this info and report
there.
CCNet publication steps can fail silently. (Check the server log for the
project).
Quick look at your <email> task definition and I suggest adding a
<notifications> block (from below)
<notifications>
<notificationType>Always</notificationType>
</notifications>
to the group. Not sure what default notification type is, but since you
don't list any, CCNet may be deciding it doesn't need to send a
notification.
-----Original Message-----
From: Chris Fouts [mailto:[email protected]]
Sent: Wednesday, May 11, 2011 9:53 AM
To: [email protected]
Subject: Re: [NAnt-users] (no subject)
Yes I posted it in the ccnet group, but I'm not sure it's a ccnet issue,
so I asked here too. Ccnet does know that the Nant script failed since
the dashboard indicates so.
One thing I see that I missed is the <notifications> block, but
shouldn't that default to Always?
-chris
<tasks>
<nant>
<description>Calling Nant script</description>
<executable>nant.bat</executable>
<baseDirectory>C:\SomeFolder</baseDirectory>
<buildFile>nant.build</buildFile>
<targetList>
<target>all</target>
</targetList>
<buildTimeoutSeconds>$(timeout90)</buildTimeoutSeconds>
</nant>
</tasks
<publishers>
<xmllogger />
<buildpublisher>
<publishDir>c:\ccnet\SomeFolder</publishDir>
</buildpublisher>
<email from="[email protected]"
mailhost="smtpmail.mycompany.com"
mailport="25"
includeDetails="TRUE">
<mailhostUsername>$(domain)\$(user)</mailhostUsername>
<mailhostPassword>$(pw)</mailhostPassword>
<users>
<user name="My Name"
group="BuildMeister" address="[email protected]" />
</users>
<groups>
<group name="BuildMeister" />
<group name="Bradley_A3_PE" />
<group name="Bradley_A3_Developers" />
</groups>
</email>
</publishers>
-----Original Message-----
From: Chris Fouts [mailto:[email protected]]
Sent: Wednesday, May 11, 2011 10:37 AM
To: Adam Bruss; [email protected]
Subject: Re: [NAnt-users] (no subject)
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:[email protected]]
Sent: Tuesday, May 10, 2011 10:35 PM
To: Chris Fouts; [email protected]
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:[email protected]]
Sent: Tuesday, May 10, 2011 9:04 PM
To: [email protected]
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 [[email protected]]
Sent: Tuesday, May 10, 2011 8:02 PM
To: Chris Fouts; [email protected]
Subject: RE: [NAnt-users] (no subject)
Here's a ccnet example of a publisher block that sends mail.
<publishers>
<email from="[email protected]" mailhost="smtp.foobar.com"
includeDetails="TRUE">
<users>
<user name="frank" group="buildmaster"
address="[email protected]"/>
<user name="bob" group="buildmaster"
address="[email protected]"/>
<user name="jon" group="buildmaster"
address="[email protected]"/>
<user name="paul" group="developers"
address="[email protected]"/>
</users>
<groups>
<group name="buildmaster">
</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:[email protected]]
Sent: Tuesday, May 10, 2011 4:07 PM
To: [email protected]
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
[email protected]
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
- ---------------------------------------------------------------------------
PRIVILEGE AND CONFIDENTIALITY NOTICE
The information in this electronic mail (and any associated attachments) is
intended for the named recipient(s) only and may contain privileged and
confidential information. If you have received this message in error, you are
hereby notified that any use, disclosure, copying or alteration of this message
is strictly prohibited. If you are not the intended recipient(s), please
contact the sender by reply email and destroy all copies of the original
message. Thank you.
--------------------------------------------------------------------------
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users