Justin Adkins
Justin Adkins

Reputation: 1234

TFS Build continuous integration with multiple branches

In my TFS solution, I have two branches Main and Dev. We have four different hosting environments Dev, ITST, QA and Prod, and a different build script for each environment.

Whenever there is a check-in, a build runs and deploys the solution to the Dev environment. However, it is only building our Main branch and not whatever is checked into the Dev branch.

For the Dev build script, how would I go about specifying which branch to build? I've already tried configuring the Source Settings, but when I specified the Dev branch for the Source Control Folder, I kept getting errors related to the mappings.

Update

Here is the error I'm getting: There is no working folder mapping for $/DLS/Application/P1/P1.sln

Upvotes: 0

Views: 317

Answers (1)

Mike Cheel
Mike Cheel

Reputation: 13106

It sounds like TFS is looking for:

$/DLS/Application/P1/P1.sln

You have it mapped to:

$/DLS/Application/DEV

Try changing the 'Active' mapping to something like:

$/DLS/Application

Or

$/DLS/Application/P1

Upvotes: 1

Related Questions