Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Cruise Controls build number to start at a certain value for renamed project?

I have a project that uses CruiseControl.NET, and as a versioning scheme we have 3.0.[ccnetbuild].[svnrevision]. CCNetBuild is the internal build number cruise control uses to keep track of how many builds of a project it has done. Now I have had to rename one of the CCNet project (rename in CCNets config file) and the [build] number now starts again from zero. Is there any way I can set it to start at a particular value (the last value I had with the original name) and make it increment from there? It must be stored in some internal CCNet database or something like that.

like image 384
Einar Egilsson Avatar asked Sep 07 '10 08:09

Einar Egilsson


2 Answers

You need to edit the .state file of the CCNET project. Either you explicitly set its path using the State Manager Block in CCNET configuration or - if omitted - you'll find it in CCNET installation directory.

like image 140
The Chairman Avatar answered Jan 03 '23 16:01

The Chairman


And need to mention that version scheme "3.0.[ccnetbuild].[svnrevision]" is dangerous, because any part of version can't be more than 65535 on Windows OS, so if you expect long life of your project - svnrevision (and maybe even ccnetbuild) can reach this value and at this point will be quite hard to understand what is wrong and why build doesn't work anymore.

like image 33
Ezh Avatar answered Jan 03 '23 17:01

Ezh