1
votes

(Similar to: Is it possible to prevent a build chain from being interrupted in TeamCity?)

I have the following build chain:

  1. Proj A - Build and Install Environment
  2. Proj B,C,D - Test Environment

So Proj A runs, then Projs B,C & D.

The problem is A may start before B, C or D finishes, resulting in the environment being rebuilt while tests are run against it.

Is there a way to tell TeamCity to complete the entire chain before it starts a new chain?

Things I've thought of:

  1. I don't want to limit to a build agent so that B, C & D are run in parallel and quickly
  2. I could add a delay for Proj A's VC trigger, but that's a last resort.
1

1 Answers

1
votes

Which version of TeamCity are you using? If using version 8.0 or higher, you could define a Shared Resource in projects B, C and D (they would be defined as using the resource in read mode), and define project A as using that resource in write mode with a resource quota of 1. That should prevent project A of running while any of the others are running.