Dashboard > CruiseControl.NET Community > ... > Contributions > Viewing build progress with Nant and MSBuild
Viewing build progress with Nant and MSBuild Log In View a printable version of the current page.

Added by Ruben Willems , last edited by Ruben Willems on Aug 14, 2008  (view change)
Labels: 
(None)

From build 3005 onwards, (1.4 release) CCNet shows the buildstage in the dashboard and CC-Tray.
Since CCNet can only signal the start of a task (Nant, MSBuild, exec, ...) more detail is needed with long during tasks.

The mechanism is as follows : whenever a task starts this data is visualised.

When more detailed data is needed, the external tool can create a listenerfile containing more details.
The file and it's location is exposed by CCNET in the normal way by passing it as integration properties.
The name of this property is : CCNetListenerFile

Example of the file


<data>
<Item Time="2007-10-14 08:43:12" Data="Starting Build timetester" />
<Item Time="2007-10-14 08:43:16" Data="Starting Target build" />
<Item Time="2007-10-14 08:43:16" Data="Sleeping for 5000 milliseconds." />
</data>


Screenshots 


 
 

 
 

Extending Nant

Use the Nant listener :

Place this dll in the Nant bin folder.

A small update is needed in your CCNet config file, you'll have to instruct Nant to use the listener.
Do this by updating the buildArgs section of the NAnt task : -listener:CCNetListener,CCNetListener

<nant>
  <executable>c:\nant\nant.exe</executable>
  <nologo>true</nologo>
  <buildFile>c:\test_source\doit.build</buildFile>
  <buildArgs>-listener:CCNetListener,CCNetListener</buildArgs>
  <buildTimeoutSeconds>90</buildTimeoutSeconds>
</nant>

Extending MSBuild

A plain vanilla MSBuild listener :

Instruct MSBuild to use this logger by using the <logger> section of the MSBuild task.

If you want to use these sources in your own listeners, please do.

Powered by a free Atlassian Confluence Open Source Project / Non-profit License granted to ThoughtWorks, Inc.. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators