Hi, I have been using 1.4.4 sp1 for some time and have now venturing to use
a later version of cc.net (currently 1.5.7256.1).

I have a "master build" called MonitorBuilds with a custom trigger.  The
trigger simply looks at a database table for a new entry.  If one exists, it
forces a build.

In the publishers section of my ccnet.config, I tell it to force another
project on a remote machine.  I am actually using some features from this
blog<http://www.beefycode.com/post/Load-Balancing-the-Build-Farm-with-CruiseControlNET.aspx>because
I like the idea.
Here is the snippet:

  <project name="MonitorBuilds">
    <sourcecontrol type="svn">
      <trunkUrl>https://.../TestDashboardProject</trunkUrl>
      <workingDirectory>D:\TestDashboardProject2\</workingDirectory>
    </sourcecontrol>
    <triggers>
      <databaseTrigger name="dashboard" seconds="10" initialSeconds="30"
sql="select * from blah"  />
    </triggers>
    <publishers>
      <farmBuild>
        <farmServers>
          <farmServer priority="1"
uri="tcp://xx.xx.xx.xx:21234/CruiseManager.rem"/>
          <farmServer priority="2"
uri="tcp://localhost:21234/CruiseManager.rem"/>
        </farmServers>
      </farmBuild>
      <xmllogger logDir="D:\Program
Files\CruiseControl.NET\server\MonitorBuilds\BuildLogs" />
    </publishers>
  </project>



On the remote machine, this is the ccnet.config contents:

  <project name="Dynamic" queue="TestProject" queuePriority="0">
    <workingDirectory>D:\TestDashboardProject2\</workingDirectory>
    <webURL>
http://localhost/ccnet/server/local/project/Dynamic/ViewLatestBuildReport.aspx
</webURL>
    <sourcecontrol type="svn">
      <trunkUrl>https://.../TestDashboardProject</trunkUrl>
      <workingDirectory>D:\TestDashboardProject2\</workingDirectory>
    </sourcecontrol>
    <triggers/>
    <tasks>
      <nant>
        <executable>nant.exe</executable>

<baseDirectory>D:\TestDashboardProject2\TestDashboardProject</baseDirectory>
        <buildArgs>testRun</buildArgs>
        <nologo>false</nologo>
        <buildFile>default.build</buildFile>
        <logger>NAnt.Core.XmlLogger</logger>
        <buildTimeoutSeconds>12000</buildTimeoutSeconds>
      </nant>
    </tasks>
    <publishers>
      <merge>
        <files>
          <!--these file names need to conform to those found in
sandbox.build-->

<file>D:\TestDashboardProject2\TestDashboardProject\myfile1.xml</file>

<file>D:\TestDashboardProject2\TestDashboardProject\myfile2.xml</file>

<file>D:\TestDashboardProject2\TestDashboardProject\myfile3.xml</file>
        </files>
      </merge>
      <xmllogger logDir="D:\Program
Files\CruiseControl.NET\server\Dynamic\BuildLogs" />
      <email from="" mailhost="" includeDetails="TRUE">
        ... omitted
      </email>
    </publishers>
  </project>


I can see the "myfile1", "myfile2", "myfile3" get merged into the xml
contents while looking through the output of ccnet.exe.  However, when
browing around the dashboard, I don't see the results as I used to in 1.4.4
sp1.  Even browsing thorugh the artifacts folder, etc, I don't see the
results like before.  Can someone help me gather the results (especially
from the remote machine)?

Thanks!

Bryan

Reply via email to