Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I am trying to have a continuous integration and auto build process using cruisecontrol.net and nant(ver 0.91-alpha 2).Source code resides on a remote CVS repository.The problem is when I make some changes to the code and check it in cc.net detects the change and kicks off the build process(so far so good),but nant successfully builds no matter what changes I made in the code(even if I remove a bracket or a namespace and anything).I am unable to understand why the build is not failing.
And recently I found out that cc.net is not detecting the changes made to
the code by other developers.
My cc.net config file and the nant build file are included.
Please help.

CC.net config file
XML
<cruisecontrol>
    <project name ="TEMT Integration">
    <workingDirectory>C:\Program Files\TEMTIntegration</workingDirectory>
    <artifactDirectory>C:\Program Files\TEMTIntegration\</artifactDirectory>
    <triggers>
      <intervalTrigger seconds="300" buildCondition="IfModificationExists"/>
      <scheduleTrigger time="02:00" buildCondition="ForceBuild">
      <weekDays />
      </scheduleTrigger>
    </triggers>
    <modificationDelaySeconds>10</modificationDelaySeconds>
    <sourcecontrol type="cvs">
      <executable>C:\Program Files\CVSNT\cvs.exe</executable>
      <cvsroot>:pserver;username=Usrnm;password=pwd;hostname=host:/cvsadmin/it_projects</cvsroot>
      <module>TEMT</module>
      <workingDirectory>C:\Program Files\TEMTIntegration</workingDirectory>
      <labelOnSuccess>True</labelOnSuccess>
    </sourcecontrol>
    <tasks>
      <nant>
        <executable>C:\Program Files\nant-0.91-alpha2\bin\nant.exe</executable>
        <baseDirectory>C:\Program Files\TEMTIntegration</baseDirectory>
        <buildFile>C:\Program Files\TEMTIntegration\default.build</buildFile>
        <buildTimeoutSeconds>300</buildTimeoutSeconds>
      </nant>
    </tasks>
    <publishers>
    <xmllogger logDir ="Logs" />
    </publishers>
  </project>
</cruisecontrol>


nant.build file

XML
<?xml version="1.0"?>
<project name="TEMT Integration Test"
  default="run">
  <property name="TEMT.dir" value="C:\Program Files\TEMTIntegration" />
  <target name="clean" description="Deletes compiled binaries">
    <delete>
      <fileset>
        <include name ="${TEMT.dir}/**/bin/**/*" />
        <include name ="${TEMT.dir}/**/obj/**/*" />
        <exclude name ="${TEMT.dir}/**/Core/bin/Debug/ReportHelper.dll" />
        <exclude name ="${TEMT.dir}/**/Core/bin/Debug/ReportHelper.pdb" />
        <exclude name ="${TEMT.dir}/**/Core/obj/Debug/ReportHelper.dll" />
        <exclude name ="${TEMT.dir}/**/Core/obj/Debug/ReportHelper.pdb" />
      </fileset>
    </delete>
  </target>
  <target name="checkout">
    <cvs-checkout
       cvsroot=":pserver;username=usrnm;password=pwd;hostname=host:/cvsadmin/it_projects"
       module="TEMT"
      <!-- cvsfullpath="C:\Program Files\CVSNT\cvs.exe" -->
       destination="C:\Program Files\TEMTIntegration\">
    </cvs-checkout>
  </target>
  <target name="build" description="Builds TEMT">
     <solution configuration="release">
        <projects>include name = "C:\Program Files\TEMTIntegration\TEMTSource\TEMT\TEMT.sln"</projects>
     </solution>
  </target>
  <target
    name="run" depends="clean,checkout,build">
  </target>
</project>
Posted
Comments
Indivara 21-Apr-11 17:31pm    
What happens when you run it (NAnt) manually? Does it fail then?
Indivara 21-Apr-11 17:57pm    
Another thing to try - turn up cc.net's logging to its maximum level and see what is happening. It's been a long time since I used cc.net, I'll get back to you maybe later...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900