In the following example, I run my build with rake/albacore, which
calls msbuild + nunit.

msbuild produces two websites here:

D:\Builds\MyProjects\Publish\Admin\
D:\Builds\MyProjects\Publish\Client\

publish.bat just copies each of these to the actual websites, e.g.
[for the first website]

xcopy D:\Builds\MyProjects\Publish\Client\*.* D:\Domains\MyProjects.com
\ /E /Q /R /K /Y

Q1: if the first exec, build, task fails will it stop there and ignore
the 2nd, publish, task?
[Forgive the question but I am reluctant to break the source in the
repo just to test this.]

Q2: Given that the ccnet.config actually works and the websites are
build and published, is this (below) OK?

<cruisecontrol>
  <!-- http://blog.jpboodhoo.com/SampleCCNetConfigurationSection.aspx
-->
  <project name="MyProjects">
    <workingDirectory>D:\Builds\MyProjects\Source</workingDirectory>
    <artifactDirectory>D:\Builds\MyProjects\Source\Assemblies</
artifactDirectory>
    <webURL>http://ftweb41-wviw-d/ccnet/</webURL>
    <modificationDelaySeconds>10</modificationDelaySeconds>
    <triggers>
      <intervalTrigger seconds="60" />
    </triggers>
    <sourcecontrol type="svn">
      <trunkUrl>svn://anthill.svc.ft.com/repo/ASPDotNet/MyProjects/
branches/ConsultantDirectorySprint</trunkUrl>
      <workingDirectory>D:\Builds\MyProjects\Source</workingDirectory>
    </sourcecontrol>
    <tasks>
      <exec>
        <executable>D:\Builds\build.bat</executable>
        <buildTimeoutSeconds>300</buildTimeoutSeconds>
      </exec>
      <exec>
        <executable>D:\Builds\publish.bat</executable>
        <buildTimeoutSeconds>30</buildTimeoutSeconds>
      </exec>
    </tasks>
    <publishers>
      <merge>
        <files>
          <file>D:\Builds\MyProjects\Reports\Test-Result.xml</file>
        </files>
      </merge>
      <xmllogger />
    </publishers>
 </project>
</cruisecontrol>

Reply via email to