How can you link version numbers between build configurations of a TeamCity project?

自作多情 提交于 2019-12-03 15:43:56

问题


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.

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?

I'm using TeamCity 4.0.2, runner is Rake, building VS2008 solutions.


回答1:


If you have snapshot dependencies for Dev->QA->Production build, you can reference build number from Dev build in QA and Production builds.

Please read http://www.jetbrains.net/devnet/message/5231290 for details how to do it.

Update: The recent information on how to achieve this is available in this TeamCity How-To question.



来源:https://stackoverflow.com/questions/580138/how-can-you-link-version-numbers-between-build-configurations-of-a-teamcity-proj

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