Home > TFS, TFS2010 > Installing Build Controller on TFS Server and Agents on the Build Server

Installing Build Controller on TFS Server and Agents on the Build Server


Configure Build Controllers

Permissions

To create or modify Build Agents, the user must be a member of Administrator group and the Manage build resources permission in Visual Studio Team Foundation Server must be set to Allow

Walkthrough

This section is a walkthrough for configuring TFS Build controller on the TFS Server and configuring TFS Agents on the Build server. The following figure illustrates what we are trying to achieve

    1. If TFS Build Service is not installed on the TFS Machine,
        1. follow steps 1-5 from Installing TFS Build Service (Controller and Agents on the same machine) walkthrough, to install TFS Build Service on the TFS machine
        2. Uncheck Launch Team Foundation Server Configuration Tool

      1. Click Finish
    2. Open Team Foundation Administration Console
    3. Select Build Configuration from the tree view on the right hand side

    1. Click Configure Installed Feature
    2. Click Start Wizard button

    1. Select you the TFS project by clicking on the Browse button

    1. On the Configure Team Foundation Build Service
      1. If you have configured the Build Service on another machine before now, Select Scale out build services radio button (option button) and Create New Build Controller. If you are configuring the controller for the first time you should see Use the default settings
      2. Select 0 (no build agents) from “Number of Agents to run on this machine” combo box dropdown. Remember we are only installing the Build Controller on the TFS machine while the Build Agents will be installed on the Build Machine.

    1. Select NT AUTHORITY\NETWORK SERVICE, then click Next

    1. Review the configuration, click Next
    2. Click Configure on the Readiness Check screen

    1. There should be no errors. Click Next to complete the wizard
    2. Build Configuration should look like the following figure

Configure Build Agents

Build Agents are resource intensive. You can distribute Build Agents across multiple workstations. The recommended practice is to have an agent per logical CPU core. For instance, if you have a dual core machine with hyper threading (HT) turned off, you should have two agents. If you have the dual core CPU with HT turn on, you should have four agents.

Permissions

To create or modify Build Agents, the user must be a member of Administrator group and the Manage build resources permission in Visual Studio Team Foundation Server must be set to Allow

Walkthrough

The following is a walkthrough for configuring Build Agents on the build server

    1. Login to the Build Server
    2. If Build Services is not installed on the build machine, follow steps 1-7 from Configure Build Controller
    3. On the Configure Team Foundation Build Service
      1. Select Scale out build services radio button
      2. User the recommended number of build agents
      3. Select the controller from your TFS machine in the Add this capacity to the following resource.
      4. Click Next

  1. Follow steps 9-12 from Configure Build Controllers
  2. Build Configuration should look like the following figure

 

About Lajak Technologies

A consulting firm in Ottawa, Ontario that provides services related to Microsoft technologies, Team Foundation Server, DevOps practices, security and more. Contact us today to help you solving your complex software problems. Visit us at http://www.lajak.com.

Categories: TFS, TFS2010 Tags: , ,
  1. Kim
    May 3, 2011 at 4:38 am

    Thanks. Helped me alot.

    • Lajak Technologies Inc
      May 3, 2011 at 6:21 am

      You are very welcome

  2. October 21, 2011 at 2:41 am

    Thanks, you make my day.

  3. Kajaruban
    October 10, 2012 at 1:52 am

    Thanks a lot . Nice article . helped me lot !!!

  1. February 13, 2011 at 11:28 pm

Leave a comment