如何将 CC.NET 构建到特定的 hg (Mercurial) 标签?
我正在尝试使用 cc.net 中的标签来控制发布版本。当我构建用于开发的构建机器时,我用关键字“release”对其进行标记。现在我想使用相同的存储库标签来构建生产项目。
由于标签“release”将解析为最新版本,因此它应该在与开发版本完全相同的位置构建存储库。
这是我在开发项目中使用的:
<sourcecontrol type="hg">
<repo>//pdesql/SoftwareDevelopment/Repository/PBJ</repo>
<workingDirectory>C:\build\pbj-dev-deploy</workingDirectory>
<tagCommitMessage>release</tagCommitMessage>
<tagOnSuccess>true</tagOnSuccess>
</sourcecontrol>
I am trying to use tags in cc.net to control release build. When I have the build machine build for development, I have it tag with a keyword - 'release'. Now I would like to have the production project build using the same repository tag to build.
Since the tag 'release' would resolve to the most recent version, it should build the repository at exactly the same place as the development build.
Here is what I am using for the development project:
<sourcecontrol type="hg">
<repo>//pdesql/SoftwareDevelopment/Repository/PBJ</repo>
<workingDirectory>C:\build\pbj-dev-deploy</workingDirectory>
<tagCommitMessage>release</tagCommitMessage>
<tagOnSuccess>true</tagOnSuccess>
</sourcecontrol>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过在存储库地址末尾添加一个片段来完成此操作:
您可以通过输入
hg help urls
来阅读有关此内容的更多信息注意:他的内容似乎已损坏最新版本。目前,我不得不将构建服务器上的 Mercurial 降级到 1.7.3(我知道它可以在其中运行)。我已在此处提交了一个错误。
我还发布了更多在我的博客上了解我如何使用它:-)
You can do this by adding a fragment to the end of the repo address:
You can read more about this by typing
hg help urls
Note: his appears to be broken in the latest version. For now, I've had to downgrade Mercurial on our buildserver to 1.7.3 (one I know it works in). I've filed a bug here.
I also posted a little more on my blog about how I'm using this :-)