O'Reilly logo

Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build by William Bartholomew, Sayed Ibrahim Hashimi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Infrastructure

Load Balancing Builds between Build Agents

When builds are queued they are queued on a specific build agent selected by the person queuing the build. They can scroll through each build agent to find the one with the shortest queue, but with a large number of build agents this can take time.

A project has been published on CodePlex that can move builds from one build agent to an idle build agent to make the best use of the available build agents. This project consists of a very simple command-line utility built using the Team Build API discussed in Chapter 11, called TeamBuildLoadBalancer.exe, which takes the Team Foundation Server URL and an optional list of Team Projects as command-line arguments.

To set up the Team Foundation Build ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required