This page last changed on Jun 07, 2005 by orogers.

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-213'

<project>
   <labeller type="defaultlabeller">
     <prefix>Foo-1-</prefix>
     <incrementOnFailure>true</incrementOnFailure>
   </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

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

Posted by infopex at Feb 28, 2007 02:19
Document generated by Confluence on Jun 21, 2007 10:33