user1433470
user1433470

Reputation: 25

Teamcity - multiple build configurations

I am quite new to TeamCity, and have been playing around with it for a few days. My Visual Studio solution has the following projects:

At the moment I have a build configuration set up that will compile the solution and run all the tests as soon as a change is checked in to SVN. This is fine, however there are some cases I wouldn't want this to happen:

What would be the best way to set up the above scenario. I would be very grateful if you could assist.

Many thanks

Upvotes: 2

Views: 2521

Answers (1)

Pavel Bakshy
Pavel Bakshy

Reputation: 7747

You can split your build configuration to few:

  1. DAL - Triggers on changes in DAL and DAL.Test, build them using msbuild and run tests.
  2. BLL - the same like for DAL.
  3. Web - Triggers on changes in Web project and rebuild it.

For each you should configure checkout path using 'Trigger rules' of VCS trigger. Add to 2nd configuration 'Finish trigger' which depends on 1st configuration and the same for 3rd configuration depending on 2nd. So if you push changes related to Dal, it will build all configurations in order DAL -> BLL -> Web. If you have changes only in BLL, chain will be BLL -> Web, and Web changes will trigger only one Web build.

Upvotes: 3

Related Questions