Auto Branching in svn using teamcity

随声附和 提交于 2019-12-07 15:39:46

问题


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.


回答1:


Open TeamCity Version Control Settings for your release build.

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.

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.



来源:https://stackoverflow.com/questions/7567589/auto-branching-in-svn-using-teamcity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!