Puneet Garg
Puneet Garg

Reputation: 41

how to run a single instance of teamcity build across all agents

We have a teamcity set-up on with multiple agents. There is one particular build which uses some underlying resources and services of a particular environment. ( say uat)

We want that this build should not run n parallel to avoid resource contention. i.e. only a single running build at a time. How can I achieve this ?

Thanks

Upvotes: 0

Views: 300

Answers (1)

infojolt
infojolt

Reputation: 5418

Under the project, setup a shared resource:

TeamCity shared resource

Then under the build configurations you don't wish to be able to run in parallel add a build feature and select the resource you just created and "Write Lock":

TeamCity shared resource build feature

This will mean any extra builds triggered will stay in the build queue and will not be allowed to run concurrently.

Upvotes: 2

Related Questions