Viewing build progress

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

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

Screenshots

Dashboard_BuildStage

CCTray_BuildStage

Extending Nant

Use the Nant listener :
  • framework 1.1 dll : Nant_CCNetListener_FrameWork1_1.zip
  • framework 2.0 dll : Nant_CCNetListener_FrameWork2.zip
  • Source : Source_Nant_CCNetListener.zip

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

1<nant>
2  <executable>c:\nant\nant.exe</executable>
3  <nologo>true</nologo>
4  <buildFile>c:\test_source\doit.build</buildFile>
5  <buildArgs>-listener:CCNetListener,CCNetListener</buildArgs>
6  <buildTimeoutSeconds>90</buildTimeoutSeconds>
7</nant>

Extending MSBuild

A plain vanilla MSBuild listener :
  • Source : MSBuildListener.zip
  • MSBuildListener Framework 2.0 : MSBuildListener.zip]
  • MSBuildListener Framework 3.5 : MSBuildListener_Framework_3_5.zip

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.

dashboard_buildstage.png - Dashboard_BuildStage (17.2 kB) Ruben Willems, 02/09/2012 08:45 pm

cctray_buildstage.png - CCTray_BuildStage (9.4 kB) Ruben Willems, 02/09/2012 08:45 pm

Source_Nant_CCNetListener.zip (1.4 kB) Ruben Willems, 02/09/2012 08:56 pm

MSBuildListener.zip (3.5 kB) Ruben Willems, 02/09/2012 08:56 pm

MSBuildListener_Framework_3_5.zip (4.4 kB) Ruben Willems, 02/09/2012 08:56 pm

Nant_CCNetListener_FrameWork1_1.zip (2.8 kB) Ruben Willems, 02/09/2012 08:56 pm

Nant_CCNetListener_FrameWork2.zip (3.1 kB) Ruben Willems, 02/09/2012 08:56 pm

Source_MSBuildListener.zip (4.3 kB) Ruben Willems, 02/09/2012 08:56 pm