将 Cruise Controls 内部版本号设置为从重命名项目的某个值开始?
我有一个使用 CruiseControl.NET 的项目,作为版本控制方案,我们有 3.0.[ccnetbuild].[svnrevision]。 CCNetBuild 是巡航控制系统的内部版本号,用于跟踪其已完成的项目版本数。现在我必须重命名 CCNet 项目之一(在 CCNets 配置文件中重命名),并且 [build] 编号现在再次从零开始。有什么方法可以将其设置为从特定值(我使用原始名称获得的最后一个值)开始并使其从那里递增?它必须存储在一些内部 CCNet 数据库或类似的东西中。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要编辑CCNET项目的
.state
文件。您可以使用 CCNET 中的 状态管理器块 显式设置其路径配置或 - 如果省略 - 您将在 CCNET 安装目录中找到它。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.需要提一下版本方案“3.0.[ccnetbuild].[svnrevision]”是危险的,因为在 Windows 操作系统上版本的任何部分都不能超过 65535,所以如果您期望项目的寿命较长 - svnrevision (并且也许甚至 ccnetbuild)都可以达到这个值,此时将很难理解出了什么问题以及为什么构建不再起作用。
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.