Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

rake

teamcity

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.

like image 790
Joshua Turner Avatar asked Feb 24 '09 01:02

Joshua Turner


People also ask

How do you set build configuration in TeamCity?

Go to Administration | Projects and open the required project. Alternatively, open the project using the Projects pop-up menu and click Edit Project Settings. The Project Settings page will open. On the Project Settings page, click Create build configuration under the Build Configurations section.

Is TeamCity a version control?

TeamCity allows synchronizing project settings with the version control repository (VCS). Supported VCSs are Git, Mercurial, Perforce, Subversion, and Azure DevOps Server (formerly TFS).

What is build chain in TeamCity?

A build chain is a sequence of builds interconnected by snapshot dependencies. Sometimes the build chain is called a "pipeline". Parts of a build chain linked with snapshot dependencies with enabled revisions synchronization use the same snapshot of the sources.


1 Answers

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.

like image 146
KIR Avatar answered Oct 04 '22 04:10

KIR