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.
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.
TeamCity allows synchronizing project settings with the version control repository (VCS). Supported VCSs are Git, Mercurial, Perforce, Subversion, and Azure DevOps Server (formerly TFS).
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With