Following is my config file. I want to run MyITRTestProject first and
then when build is completed it should start MyITRBrowserTest project.
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<project name="MyITRTestProject" queue="Q1" queuePriority="1">
<sourcecontrol type ="svn">
<trunkUrl>svn://rom/me/TestReports/</trunkUrl>
<workingDirectory>C:\source\TestProjects\ITRTests
\MyITRTestProject\</workingDirectory>
<executable>c:\program files\subversion\bin\svn.exe</
executable>
</sourcecontrol>
<!--<triggers>
<scheduleTrigger time="13:35" buildCondition="ForceBuild"
name="Scheduled"/>
</triggers>-->
<triggers>
<intervalTrigger name="continuous" seconds="60"/>
<scheduleTrigger time="13:35" buildCondition="ForceBuild"
name="Scheduled"/>
</triggers>
<!--<triggers>
<scheduleTrigger time="12:05" buildCondition="ForceBuild"
name="Scheduled">
<weekDays>
<weekDay>Thursday</weekDay>
</weekDays>
</scheduleTrigger>
</triggers>-->
<tasks>
<!-- Use MsBuild to build the .Net solution-->
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework
\v3.5\MSBuild.exe</executable>
<workingDirectory>
C:\source\TestProjects\ITRTests\MyITRTestProject\
</workingDirectory>
<projectFile>MyITRTestProject.sln</projectFile>
<buildArgs>/noconsolelogger /p:Configuration=Debug /v:diag</
buildArgs>
<targets>Build</targets>
<timeout>9600</timeout>
<logger>C:\Program Files\CruiseControl.NET\server
\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
</msbuild>
<!-- Use NUnit for unit testing-->
<nunit path="C:\Program Files\NUnit 2.4.8\bin\nunit-
console.exe"
timeout="6000">
<assemblies>
<!--Path to Visual Studio project executable-->
<assembly>
C:\source\TestProjects\ITRTests\MyITRTestProject
\MyITRTestProject\bin\Debug\MyITRTestProject.dll
</assembly>
</assemblies>
</nunit>
</tasks>
</project>
<project name="MyITRBrowserTest">
<sourcecontrol type ="svn">
<trunkUrl>svn://rom/me/TestReports/</trunkUrl>
<workingDirectory>C:\source\TestProjects\ITRTests
\MyITRBrowserTest\</workingDirectory>
<executable>c:\program files\subversion\bin\svn.exe</
executable>
</sourcecontrol>
<triggers>
<intervalTrigger name="continuous" seconds="60"/>
<scheduleTrigger time="15:00" buildCondition="ForceBuild"
name="Scheduled"/>
</triggers>
<tasks>
<!-- Use MsBuild to build the .Net solution-->
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework
\v3.5\MSBuild.exe</executable>
<workingDirectory>
C:\source\TestProjects\ITRTests\MyITRBrowserTest\
</workingDirectory>
<projectFile>MyITRBrowserTest.sln</projectFile>
<buildArgs>/noconsolelogger /p:Configuration=Debug /v:diag</
buildArgs>
<targets>Build</targets>
<timeout>9600</timeout>
<logger>C:\Program Files\CruiseControl.NET\server
\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
</msbuild>
<!-- Use NUnit for unit testing-->
<nunit path="C:\Program Files\NUnit 2.4.8\bin\nunit-
console.exe"
timeout="6000">
<assemblies>
<!--Path to Visual Studio project executable-->
<assembly>
C:\source\TestProjects\ITRTests\MyITRBrowserTest
\MyITRBrowserTest\bin\Debug\MyITRBrowserTest.dll
</assembly>
</assemblies>
</nunit>
</tasks>
</project>
</cruisecontrol>
Kind Regards
Sam