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

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

问题描述

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

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.

对于我们的 SVN 目录,我们有我们的策略、所有者和所有这些,我们遇到的问题是如何配置 TeamCity 以在应用程序的不同版本"或状态"上为同一个项目进行多个构建.

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.

最好的方法是什么?

提前致谢!

推荐答案

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

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

然后,对于每个构建配置,在您的 VCS 配置中编辑检出规则.添加您想要的结帐规则.

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

例如,对于您的主干"构建配置,您将有一个检出规则:+:trunk =>;..

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

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

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 => .

这里是关于结帐规则的文档:http://confluence.jetbrains.net/display/TCD65/VCS+Checkout+Rules

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

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

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