如何在 TeamCity 项目的构建配置之间链接版本号? [英] How can you link version numbers between build configurations of a TeamCity project?
问题描述
我希望在 TeamCity 项目(开发、质量检查、生产)中有 3 个不同的构建.关联依赖项后(没有成功的 QA 就无法构建生产,没有成功的开发就无法构建 QA),我想通过构建传播版本号.
I'd like to have 3 distinct builds within a TeamCity project (Development, QA, Production). With the dependencies linked (Production can't build without a successful QA, and QA can't build without a successful Development), I'd like to propagate the version numbers through the builds.
开发构建 => v 1.0.1.0QA Build => 成功构建集版本为 v1.0.1.0
Development Build => v 1.0.1.0 QA Build => on successful build set version to v1.0.1.0
有没有办法将构建配置版本设置为不同的构建版本?
Is there a way to set a build configuration version to a different builds version?
我使用的是 TeamCity 4.0.2,运行程序是 Rake,正在构建 VS2008 解决方案.
I'm using TeamCity 4.0.2, runner is Rake, building VS2008 solutions.
推荐答案
如果你有 Dev->QA->Production build 的快照依赖,你可以在 QA 和 Production builds 中从 Dev build 引用 build number.
If you have snapshot dependencies for Dev->QA->Production build, you can reference build number from Dev build in QA and Production builds.
请阅读http://www.jetbrains.net/devnet/message/5231290 详细了解如何操作.
Please read http://www.jetbrains.net/devnet/message/5231290 for details how to do it.
更新:关于如何实现这一目标的最新信息可在 中找到这个 TeamCity 操作方法问题.
Update: The recent information on how to achieve this is available in this TeamCity How-To question.
这篇关于如何在 TeamCity 项目的构建配置之间链接版本号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!