TeamCity On-Premises
 
Get TeamCity On-Premises

Build Dependencies Setup

Edit pageLast modified: 18 September 2024

This page gives the general idea on how dependencies work in TeamCity based on an example. For the dependencies' description, see Dependent Build.

In many cases, it is convenient to use the output of one build in another, as well as to run a number of builds sequentially or in parallel on the same sources. Consider a typical example: you have a cross-platform project that has to be tested under Windows and macOS before you get the production build. The best workflow for this simple case will be to:

  1. Compile your project.

  2. Run tests under Windows and macOS simultaneously on the same sources.

  3. Build a release version on the same sources, of course, if tests have passed under both OSs.

This can be easily achieved by configuring dependencies between your build configurations in TeamCity that would look like this:

Compile test pack

Where compile, tests (win), tests (mac), and pack setup are build configurations, and naturally the tests depend on the compilation, which means they should wait till the compilation is ready.