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 i开发者_运维技巧t increment from there? It must be stored in some internal CCNet database or something like that.
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.
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.
精彩评论