TeamCity 7.0 Dependency and versions
Asked Answered
L

1

6

I have decided to follow "best practice" and only build my artifacts once and share them amongst my various builds. So I have created a master build that just builds the correct artifacts and then have the other builds have an artifact dependency to import the pre-built assemblies and .exe.

Unfortunately I have come across a bit of a problem with this. The builds with the artifact dependencies don't have the same version as the master build. So the master build version might be 2.2.11.6787 but the build that runs the tests has a version number of 2.2.111.6787 even though it is using the artifacts that have a version of 2.2.11.6787. The same applies to the nightly build that runs the full test suite.

Is there any way that the builds that have the artifact dependency could inherit the version information from the master build?

Leal answered 1/3, 2012 at 12:19 Comment(0)
R
6

You can keep build numbers in sync between builds connected by an artifact dependencies using Dependencies Properties Just set build number pattern for test or nightly build to %dep.<bt_id>.build.number% where <bt_id> is the ID of your master build configuration

Receive answered 1/3, 2012 at 12:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.