7
votes

I have a TeamCity (8.0.5) setup running with multiple agents and multiple projects with multiple configurations.

We have some build configurations for CI (eg compile and unit tests) and some of the configurations used for automated deployment.

The deployment configurations run scripts on shared services (eg IIS / sql etc) and so cannot be run in parallel with other deployment builds in any project.

Is there any way to limit this in team city?

I've have seen setting to "limit concurrent builds" but this only applies to a single configuration, I've also tried to limit the deployment builds to single common agent but I haven't been able to do this so far.

1
It's a different question actually. Keith is on TC 7 and looking to limit builds within the same project. My question relates to TC 8 and limiting builds in different projectsTwisted

1 Answers

9
votes

TeamCity 8 shipped with the Shared Resources plugin built-in and supported. It allows you to create a Shared Resource on any project in the hierarchy and under Build Features of a Build Configuration you can define what Shared Resources need to be available for the build to run, otherwise it'll be queued until the resource is available and a lock can be taken.

For more information, take at look at the TeamCity documentation: http://confluence.jetbrains.com/display/TCD8/Shared+Resources