开发者

Change build label for Project Cruisecontrol.net

After开发者_高级运维 some unexpected changes on the Cruisecontrol.net buildserver the artifacts directories were gone, and the build labels were reset on all projects. How can I change the build label value on the projects? We are using CCNetLabel variable in our scripts. I tried updating the .state file with no success. it just overwrites the values on the next build. Also tried manipulating the latest log file in the artifact directory


You can use the <initialBuildLabel> value to set it in your .config file. This documentation for the Default Labeler gives more detail, but here is their example:

<labeller type="defaultlabeller">
   <initialBuildLabel>1</initialBuildLabel>
   <prefix>Foo-1-</prefix>
   <incrementOnFailure>true</incrementOnFailure>
   <labelFormat>00000</labelFormat>
</labeller>

I think this is what I did in my build config when I needed to do this, but have since removed it once it got going at the number I wanted.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜