Hi James,

 

If you want to merge FxCop xml file in CCNET even after Nant build fails, use the merge task under <publishers> node (Move it from <tasks> to <publishers> node. Please check CCNet documentation:

 

publishers

A set of Tasks that are run after the build is complete. These tasks are used primarily to clean up after the build and to publish and report on the build results. All tasks in this section will always run regardless of whether previous tasks fail or the build is broken.

 

I think this will wok only if you are using CCNET version 0.9.1 or higher. Hope this helps.

 

Regards,

Sandeep

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Jackson
Sent: Tuesday, July 12, 2005 4:37 AM
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] FxCop failing build

 

Hi there,

 

I'm trying to integrate FxCop as part of our build process. We have a

shared build script that developers run locally, and that our continuous

integration server runs. As FxCop does not return failure error codes,

I've implemented the method recommended by MS, in that if after analysis

there's a report XML file, fire off the Nant <fail> task. This is fine

when our build script is run locally, however, on our CI server (running

CC.Net), this seems to fail the build in a very terminal way, so the

output XML files don't get merged in the CC.Net <merge> task. Not too

hot if the developer can't see what's failing the build on the CI

server!

 

Can anyone suggest a workaround for this? I could knock up a quick

standalone app, and call it with the CC.Net <exec> task, but I don't

know if I can use status return codes to fail the build from there - the

documentation isn't too hot.

 

Cheers,

James.

 

 

-------------------------------------------------------

This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening

July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual

core and dual graphics technology at this free one hour event hosted by HP,

AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar

_______________________________________________

Nant-users mailing list

Nant-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to