使用teamcity在svn中自动分支 [英] Auto Branching in svn using teamcity

查看:62
本文介绍了使用teamcity在svn中自动分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以使用 Teamcity 进行自动分支.目前我正在使用 web deploy 自动发布 web 应用程序,唯一剩下的就是分支,因为我们通常在 svn 中创建一个分支,然后发布下一个版本.任何人都可以请告知是否可行以及如何去做.

I wonder whether it is possible to do auto branching using Teamcity. As currently I am automatically publishing web applications using web deploy and the only thing left is branching as we usually take a branch in svn and then publish the next version. Can any one please advise if it is possible and how to do it.

推荐答案

为您的发布版本打开 TeamCity 版本控制设置.

Open TeamCity Version Control Settings for your release build.

将VCS 标签模式"设置为仅成功"并指定适当的标签模式.例如.release-build-%system.build.number%.在此页面的顶部,输入结帐规则 +:/trunk =>;. 然后点击编辑打开VCS根设置页面.

Set "VCS labeling mode" to "Successful only" and specify an appropriate labeling pattern. E.g. release-build-%system.build.number%. At the top of this page, enter the checkout rule +:/trunk => . then click edit to open the VCS root settings page.

确保 URL 指向源代码控制树的根级别https://vcserver/ 而不是主干 https://vcserver/trunk.同样在此页面上,将标签规则设置为 trunk=>branches

Ensure URL points to the root level of the source control tree E.g. https://vcserver/ instead of the trunk https://vcserver/trunk. Also on this page, set the labeling rule to trunk=>branches

每次运行此构建时,它都会使用新的系统构建号自动进行分支.

Each time you run this build, it will be branched automatically using a new system build number.

这篇关于使用teamcity在svn中自动分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆