views:

537

answers:

1

In TFS, you are able to create automated builds and create branches (well, hopefully. ;) ) I have the following structure:

->Trunk
->Branches
   -> Branch A

If you create an automated build, you are able to create a trigger for the build. In my case I want to create a build for Branch A so that when a checkin occurs Branch A is built. However, if I do a checkin in the Trunk, my automated build will start as it detected a checkin. Is there anyway that I can do builds per branch?

+3  A: 

Make sure your workspace for the branch in the build definition is set to the branch only and not to the root of your project. My guess is that TFS does file change detection by workspace. You'd want it set to $Project/Branches/Branch A in your example.

DancesWithBamboo
Where would you set the workspace? In the build .proj file?
Ray Booysen
In TFS 2008 you set the workspace template in the build definition page (Builds Node, Edit Build Definition, Workspace)
Martin Woodward