TeamCity On-Premises
 
Get TeamCity On-Premises

Shared Resources

Edit pageLast modified: 27 October 2023

The Shared Resources build feature allows limiting concurrently running builds using a shared resource, such as an external (to the CI server) resource, for example, a test database, or a server with a limited number of connections.

Some of such resources may be accessed concurrently but allow only a limited number of connections, others require exclusive access. Adding different locks to shared resources addresses these cases: you can define a resource on the project level, configure its parameters (for example, type and quota), and then use this resource in specific build configurations by adding the Shared Resources build feature to them. The build starts once the lock on the resource is acquired; on the build completion, the lock is released. While the builds using the resource are running, the resource is unavailable, and the other builds requiring locks will be waiting in the queue.