配置TeamCity以从SVN干线,分支和/或标签构建 [英] Configure TeamCity to build from SVN trunk, branches and/or tags

查看:280
本文介绍了配置TeamCity以从SVN干线,分支和/或标签构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何配置TeamCity从SVN干线以及从不同的分支和/或标签构建?



我们的想法是从同一个项目中进行多个构建,这样,我们就可以拥有正在生产的当前版本(具有在该发布标签上进行部署和修复的功能),同时可以拥有每天进行的实际开发的主干和分支。 p>

我们拥有我们的策略,所有者以及SVN目录的所有内容,我们面临的问题是如何配置TeamCity以在不同的版本下为同一项目进行多个构建



执行此操作的最佳方法是什么?



预先感谢!

解决方案

首先,确保您的VCS根目录是管理面板中SVN信息库的根目录,而不是指向主干目录。



然后,对于每个构建配置,在VCS中编辑签出规则组态。添加所需的结帐规则。



例如,对于 trunk构建配置,您的结帐规则为: +:trunk => 。



如果您有要构建的标签或分支,只需使用相应的签出规则创建一个新的构建配置。标签 release-1.1的签出规则为: +:tags / release-1.1 => 。



以下是有关结帐规则的文档: http://confluence.jetbrains.net/display/TCD65/VCS+Checkout+Rules


How can I configure TeamCity to build from SVN trunk and also from different branches and/or tags ?

Our idea is to have multiple builds from the same project, this way we can have the current version that is in production (with the ability to make deploys and fixes over that "release tag") and at the same time have the trunk and branches with the actual development that is taking place daily.

We have our policies, owner and all that for our SVN directories, the problem that we have is how to configure TeamCity to make multiple builds for the same project over the different "versions" or "states" of the application.

What is the best way to do this ?

Thanks in advance !

解决方案

First, ensure your VCS root is the root of your SVN repository in your administration panel, instead of being pointed to the trunk directory.

Then, for each build configuration, edit the checkout rules in your VCS Configuration. Add the checkout rule you desire.

For example, for your 'trunk' build configuraton, you would have a checkout rule of: +:trunk => ..

If you have a tag or branch you want to build, just create a new build config with a corresponding checkout rule. A tag of 'release-1.1' would have a checkout rule of: +:tags/release-1.1 => .

Here is the documentation on checkout rules: http://confluence.jetbrains.net/display/TCD65/VCS+Checkout+Rules

这篇关于配置TeamCity以从SVN干线,分支和/或标签构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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