Configuring CruiseControl 2.8.2 [build output does not display]

"Aquil H. Abdullah" <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hello All,

I have had a bear of a time configuring CruiseControl 2.8.2, the primary
reason is my refusal to read the documentation at an in-depth level, but a
year ago when I setup CruiseControl 2.7.2 everything seemed to work [almost]
out of the box.  So here is my latest problem...

I have a project which builds correctly, meges log files correctly, and
deposits artifacts correctly.  However, I do not see any of the tasks in the
build results. If I introduce a bug in the code I won't see messages from
the build, instead I will see

Build Failed
Ant Error Message: External Program Failed: /usr/lib/mono/2.0/gmcs.exe
(return code was 1)
...

If the build succeeds I see
Build Complete - build.[build number]
...

In either of the above cases I don't see any of the build information being
reported, basically it appears as though the compile.xsl or nant.xsl isn't
picking up the messages from the log file.  I  know that there is a line in
the nant.xsl file that says:

<xsl:if test="count($nant.messages) > 0">

and I am guessing that for some reason nant.messages is not greater than 0,
but I don't know why.  Anyway, I've decided to let greater minds than myself
to a stab at the problem.  Below is my config.xml file and the log file
generated from a successful build.

[config.xml]
<?xml version="1.0" encoding="UTF-8"?>
<cruisecontrol>
  <project name="Set">
    <listeners>
      <currentbuildstatuslistener file="logs/${project.name}/status.txt" />
    </listeners>
    <bootstrappers>
      <svnbootstrapper localWorkingCopy="projects/${project.name}" />
    </bootstrappers>
    <modificationset quietperiod="30">
      <svn RepositoryLocation="file:///home/aha/devel/builds/svn/Set" />
    </modificationset>
    <schedule interval="300">
      <nant buildfile="projects/${project.name}/Set.build"
        target="clean build-and-test"
        uselogger="true"
        loggerclassname="NAnt.Core.XmlLogger" />
    </schedule>
    <log>
      <merge dir="projects/${project.name}/tests" />
    </log>
    <publishers>
      <onsuccess>
        <artifactspublisher dest="artifacts/${project.name}"
file="projects/${project.name}/bin/${project.name}.dll" />
      </onsuccess>
    </publishers>
  </project>
</cruisecontrol>

[log file]
<?xml version="1.0" encoding="UTF-8"?>
<cruisecontrol>
  <modifications />
  <info>
    <property name="projectname" value="Set" />
    <property name="lastbuild" value="20090606100743" />
    <property name="lastsuccessfulbuild" value="20090606100743" />
    <property name="builddate" value="2009-06-06T14:08:27" />
    <property name="cctimestamp" value="20090606100827" />
    <property name="label" value="build.3" />
    <property name="interval" value="300" />
    <property name="lastbuildsuccessful" value="true" />
    <property name="logdir"
value="/home/aha/devel/builds/cruisecontrol-bin-2.8.2/logs/Set" />
    <property name="logfile" value="log20090606100827Lbuild.3.xml" />
  </info>
  <build project="Set" time="0 minute(s) 4 second(s)">
    <message level="Info"><![CDATA[Buildfile:
file:///home/aha/devel/builds/cruisecontrol-bin-2.8.2/projects/Set/Set.build]]></message>
    <message level="Info"><![CDATA[Target framework: Mono 2.0
Profile]]></message>
    <message level="Info"><![CDATA[Target(s) specified: clean
build-and-test]]></message>
    <task>
      <duration>1.818</duration>
    </task>
    <task>
      <duration>0.473</duration>
    </task>
    <task>
      <duration>0.405</duration>
    </task>
    <task>
      <duration>0.46</duration>
    </task>
    <task>
      <duration>0.437</duration>
    </task>
    <target name="clean">
      <task level="Info">
        <message level="Info"><![CDATA[Deleting directory
'/home/aha/devel/builds/cruisecontrol-bin-2.8.2/projects/Set/bin'.]]></message>
        <duration>5.338</duration>
      </task>
      <task level="Info">
        <message level="Info"><![CDATA[Deleting directory
'/home/aha/devel/builds/cruisecontrol-bin-2.8.2/projects/Set/tests'.]]></message>
        <duration>0.811</duration>
      </task>
      <task>
        <duration>0.097</duration>
      </task>
      <duration>16.707</duration>
    </target>
    <target name="config">
      <task level="Info">
        <message level="Info"><![CDATA[Creating directory
'/home/aha/devel/builds/cruisecontrol-bin-2.8.2/projects/Set/bin'.]]></message>
        <duration>1.952</duration>
      </task>
      <duration>3.177</duration>
    </target>
    <target name="build-and-test">
      <task>
        <duration>0.055</duration>
      </task>
      <task name="build">
        <target name="build">
          <task level="Info">
            <message level="Info"><![CDATA[Building Set Library]]></message>
            <duration>1.221</duration>
          </task>
          <task level="Info">
            <message level="Info"><![CDATA[Compiling 1 files to
'/home/aha/devel/builds/cruisecontrol-bin-2.8.2/projects/Set/bin/Set.dll'.]]></message>
            <duration>872.56</duration>
          </task>
          <duration>901.92</duration>
        </target>
        <duration>903.122</duration>
      </task>
      <task name="build">
        <target name="build">
          <task level="Info">
            <message level="Info"><![CDATA[Building Set Library]]></message>
            <duration>0.372</duration>
          </task>
          <task>
            <duration>3.951</duration>
          </task>
          <duration>17.555</duration>
        </target>
        <target name="build-test">
          <task level="Info">
            <message level="Info"><![CDATA[Build Test for Set
Library]]></message>
            <duration>0.347</duration>
          </task>
          <task level="Info">
            <message level="Info"><![CDATA[Compiling 1 files to
'/home/aha/devel/builds/cruisecontrol-bin-2.8.2/projects/Set/bin/SetTest.dll'.]]></message>
            <duration>665.054</duration>
          </task>
          <duration>688.822</duration>
        </target>
        <target name="config-test">
          <task level="Info">
            <message level="Info"><![CDATA[Creating directory
'/home/aha/devel/builds/cruisecontrol-bin-2.8.2/projects/Set/tests'.]]></message>
            <duration>0.572</duration>
          </task>
          <duration>1.803</duration>
        </target>
        <target name="test">
          <task level="Info">
            <message level="Info"><![CDATA[Running Unit Test for Set
Library]]></message>
            <duration>0.341</duration>
          </task>
          <task>
            <duration>1056.951</duration>
          </task>
          <duration>1067.137</duration>
        </target>
        <duration>1776.503</duration>
      </task>
      <duration>2683.686</duration>
    </target>
    <duration>2757.029</duration>
  </build>
  <test-results
name="/home/aha/devel/builds/cruisecontrol-bin-2.8.2/projects/Set/bin/SetTest.dll"
total="1" failures="0" not-run="0" date="2009-06-06" time="10:08:30">
    <environment nunit-version="2.4.7.0" clr-version="2.0.50727.42"
os-version="Unix 2.6.27.14" platform="Unix"
cwd="/home/aha/devel/builds/cruisecontrol-bin-2.8.2" machine-name="pi"
user="aha" user-domain="pi" />
    <culture-info current-culture="en-US" current-uiculture="en-US" />
    <test-suite
name="/home/aha/devel/builds/cruisecontrol-bin-2.8.2/projects/Set/bin/SetTest.dll"
success="True" time="0.042" asserts="0">
      <results>
        <test-suite name="Set" success="True" time="0.040" asserts="0">
          <results>
            <test-suite name="SetTest" success="True" time="0.031"
asserts="0">
              <results>
                <test-case name="Set.SetTest.testUnion" executed="True"
success="True" time="0.008" asserts="1" />
              </results>
            </test-suite>
          </results>
        </test-suite>
      </results>
    </test-suite>
  </test-results>
</cruisecontrol>

Thanks!

-- 
Aquil H. Abdullah
[email protected]

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.