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>
</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