Dashboard > CruiseControl.NET > ... > Labeller Blocks > Default Labeller
Default Labeller Log In View a printable version of the current page.  
CruiseControl.NET documentation for latest CI builds
Added by Mike Roberts , last edited by Ruben Willems on Nov 08, 2007  (view change)

Default Labeller

By default, CCNet uses a plain incrementing build number as a build label. Some source controls (e.g. Perforce Source Control Block) require you to use a different naming scheme if you want CCNet to apply labels to source control on successful builds.
You can do this by specifying your own configuration of the default labeller in your project.
The following configuration would prefix all labels with the string 'Foo-1-', so the 213th build would be labelled 'Foo-1-00213'.
The 2 leading zeros come from the labelFormat, this is set to a length of 5.

<project>
   <labeller type="defaultlabeller">
     <prefix>Foo-1-</prefix>
     <incrementOnFailure>true</incrementOnFailure>
     <labelFormat>00000</labelFormat>
   </labeller>
   <!-- Other project configuration to go here -->
</project>

Configuration Elements:

Node Description Type Required Default
prefix Any string to be put in front of all labels string false ""
incrementOnFailure If true, the label will be incremented even if the build fails. Otherwise it will only be incremented if the build succeeds. string false false
labelFormat A format applied to the buildnumber. string
false 0

Hello
 
Would it be possible to ad a "postfix" tag? So that the following format would be possible: 1.0-[buildnumber]-alpha
 
Thank's
Robert

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