Hi

I am using cc.net 1.4.2.

<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
  <project name="MyTRTestProject">
    <sourcecontrol type ="svn">
      <trunkUrl>svn://rom/lime/TestReports/</trunkUrl>
      <workingDirectory>C:\abc\Projects\ITTests\MyITTestProject\</
workingDirectory>
      <executable>c:\program files\subversion\bin\svn.exe</executable>
    </sourcecontrol>

    <triggers>
      <scheduleTrigger time="13:35" 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:\abc\Projects\ITTests\MyITRTestProject\</
workingDirectory>
        <projectFile>MyITTestProject.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:\abc\Projects\ITTests\MyITTestProject\MyITTestProject\bin
\Debug\MyITTestProject.dll
          </assembly>
        </assemblies>
      </nunit>

      <!-- Email notification to users -->
      <email from="[email protected]" mailhost="rom" mailport="25"
includeDetails="TRUE"
             mailhostUsername="username" mailhostPassword="password"
useSSL="FALSE">
        <users>
          <user name="BuildGuru" group="buildmaster"
address="[email protected]"/>
        </users>
        <groups>
          <group name="developers" notification="change"/>
          <group name="buildmaster" notification="always"/>
        </groups>
        <modifierNotificationTypes>
          <NotificationType>Failed</NotificationType>
          <NotificationType>Fixed</NotificationType>
        </modifierNotificationTypes>
      </email>
    </tasks>
 </project>
</cruisecontrol>

Kind Regards
Sam

Reply via email to