Hi Im using Cruise Control .Net 1.4 for Continuous integration and have installed it on my Windows 2000 desktop. I have Nant 0.85 for the Build. My Source control is in Borland Starteam 2005. I have .Net 2003 framework installed which i use for creating VB.Net windows applications. I have installed CCnet and I think my Ccnet.config file is configured correctly. The problem that i face is that whenever I change any code and check in starteam, the modifications are not getting detected by CCnet server and so I cannot trigger my builds on the basis of modifications. I have to rely on forcebuild for that. But using forcebuild at after every 1 minute is not acceptable for my project. I want the trigger to be based on modification. I.e. as soon as a change is detected on Starteam, the build should automatically take place.
My CCNet.config file is this -
<workingDirectory>C:\Documents and Settings\uj0011637\Desktop\StarteamCruiseControl\CCNet17Nov08</workingDirectory>
<webURL>http://172.24.120.37/ccnet</webURL>
<triggers>
<intervalTrigger name="continuous" seconds="120" buildCondition="ForceBuild" initialSeconds="120"/>
</triggers>
<sourcecontrol type="starteam">
<executable>C:\Program Files\Borland\StarTeam Cross-Platform Client 2005 R2\stcmd.exe</executable>
<project>DEL_CA_ROBOTS\Tools\CCNet17Nov08</project>
<username>600513221</username>
<password>car0b0ts</password>
<host>oscar.nat.bt.com</host>
<port>51234</port>
<autoGetSource>true</autoGetSource>
<timeout units="minutes">10</timeout>
</sourcecontrol>
<tasks>
<!-- Configure NAnt to compile the updated files -->c:\
<nant>
<executable>C:\Documents and Settings\uj0011637\Desktop\Cruise Control\nant\nant-0.85\bin\NAnt.exe</executable>
<baseDirectory>C:\Documents and Settings\uj0011637\Desktop\StarteamCruiseControl\CCNet17Nov08</baseDirectory>
<nologo>false</nologo>
<buildFile>CCNet17Nov08.build</buildFile>
<logger>NAnt.Core.XmlLogger</logger>
<buildTimeoutSeconds>1200</buildTimeoutSeconds>
</nant>
</tasks>
<!--Publishers will be done after the build has completed-->
<publishers>
<xmllogger>
<logDir>C:\Documents and Settings\uj0011637\Desktop\StarteamCruiseControl\Log</logDir>
</xmllogger>
</publishers>
<modificationDelaySeconds>10</modificationDelaySeconds>
And my build file is this -
<target name="clean" description="Delete all previously compiled binaries.">
<delete>
<fileset>
<include name="**/bin/${project::get-name()}.dll" />
<include name="**/obj/**" />
<include name="**/*.user" />
</fileset>
</delete>
</target>
<target name="rebuild" dependsontarget="clean, build ">
<zip zipfile="${project::get-name()}.zip" verbose="true">
<fileset>
<include name="**/bin/*.dll" />
<include name="**/bin/*.exe" />
</fileset>
<fileset>
<include name="*.aspx" />
<include name="*.css" />
<include name="*.config" />
<include name="*.js" />
<include name="*.asax" />
<include name="**.txt" />
<include name="**.vb" />
<include name="**.vbproj" />
<include name="**.user" />
<include name="**.sln" />
<include name="**.suo" />
<include name="**.resx" />
</fileset>
<fileset prefix="SQL">
<include name="*.sql" />
</fileset>
</zip>
</target>
<target name="unit_test" description="Run unit tests.">
<exec program="${nunit.dir}\nunit-console.exe" commandline="bin/${prjname}.exe /xml=${prjname}.xml /nologo" />
</target>
<target name="build.Console">
<solution configuration="release" solutionfile="CCNet17Nov08.sln">
</solution>
<property name="expected.output" value="bin/${prjname}.exe"/>
<fail unless="${file::exists(expected.output)}">Output file doesn't exist in ${expected.output}</fail>
</target>
Can anybody please guide me with this?? This problem is getting on my nerves now since a week and i need to get it resolved by tomorrow.. Please help!!!