<project>
<sourcecontrol>.....</sourcecontrol>
<tasks>
<nant>
<description>Call 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"
notifications="always" />
<group name="Bradley_A3_PE"
notifications="always" />
<group name="Bradley_A3_Developers"
notifications="always" />
</groups>
</email>
</publishers>
</project>
The <fail> block in my NAnt script currently just echoes a message.
ccnet DOES know the script failed becasue it is indicated in the
dashboard!
On May 11, 6:06 am, Ruben Willems <[email protected]> wrote:
> Hi
>
> this is weird because that shold work, I have the same setup.
> Can you post your config?
>
> with kind regards
> Ruben Willems
>
>
>
>
>
>
>
> On Tue, May 10, 2011 at 10:51 PM, Zilla <[email protected]> wrote:
> > 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 did not get executed for some reason. Thanks.
>
> > -chris