Reputation:
I have set up CruiseControl for .NET with SVN as my source control and using NAnt build script. When I manually build the visual studio solution I get errors, which is correct because I have some bad code. After I checked in the code to svn, CCNet triggered the build, but the result shows as SUCCESS. Please see the config and build files below:
NAnt build file:
<project name="MyServiceClient" default="build">
<target name="init" depends="clean" />
<target name="clean" />
<target name="checkout"/>
<target name="compile"/>
<!--<target name="deploy"/>
<target name="test"/>
<target name="inspect"/>-->
<target name="build" depends="init, checkout">
<call target="compile" />
<!-- <call target="inspect" />
<call target="test" />
<call target="deploy" />-->
</target>
</project>
<cruisecontrol>
<project name="MyServiceClient">
<sourcecontrol type="svn">
<trunkUrl>https://dev-wks28.dev.va.root:8443/svn/test/trunk/MyServiceClient</trunkUrl>
<executable>C:/Program Files/VisualSVN Server/bin/svn.exe</executable>
<workingDirectory>C:\test\MyServiceClient</workingDirectory>
<username>kpedda</username>
<password>Password1</password>
<autoGetSource>true</autoGetSource>
</sourcecontrol>
<workingDirectory>C:\test\MyServiceClient</workingDirectory>
<triggers>
<intervalTrigger seconds="90" buildCondition="IfModificationExists" />
<scheduleTrigger time="10:00" buildCondition="ForceBuild" />
</triggers>
<tasks>
<nant>
<executable>C:/Program Files/NAnt/bin/nant.exe</executable>
<baseDirectory>C:/Apps</baseDirectory>
<!--<workingDirectory>C:/test/MyServiceClient</workingDirectory>-->
<!--<projectFile>MyServiceClient.sln</projectFile>-->
<buildFile>default.build</buildFile>
<targetList>
<target>build</target>
</targetList>
</nant>
</tasks>
<publishers>
<xmllogger/>
</publishers>
Can anybody please tell me what's going on?
Upvotes: 0
Views: 951
Reputation: 387
Your NANT pasted again:
<?xml version="1.0"?>
<project name="MyServiceClient" default="build">
<target name="init" depends="clean" /> <target name="clean" />
<target name="checkout"/>
<target name="compile"/>
<!--<target name="deploy"/> <target name="test"/> <target name="inspect"/>-->
<target name="build" depends="init, checkout">
<call target="compile" />
<!-- <call target="inspect" /> <call target="test" /> <call target="deploy" />-->
</target>
</project>
This script does nothing. NANT does not even look at your sourcecode with this script.
Upvotes: 1