I'd like to configure TeamCity so that some specific jobs (say Job A and Job B) should not run at the same time.
This is because Job A and Job B run tests against a database that is a shared resource and both jobs need exclusive control of the database. The database is expensive, otherwise Job A and Job B would have their own ones. Job A builds a different executable and runs on a different server to Job B - they're unrelated apart from the fact that they contend a critical resource.
Could someone please tell me how to configure this in TeamCity 5?
I know that a specific job can be made to run only once and I suppose that this is to protect a non-shareable resource that the job uses. I need something that goes further and says 'don't run this job while this other job (or jobs) are running'.