Archive

Archive for February 11, 2011

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.

Advertisements
Categories: TFS, TFS2010 Tags: , ,

Installing TFS Build Service (Controller and Agents on the same machine)


The following steps installs TFS build service and configure the controller and the build agent on the build machine as illustrated on the following figure

  1. Run TFS installation on the build server
  2. Select Team Foundation Build Service
  3. Click Install
  4. When the installation is done
    1. Check Launch Team Foundation Server Configuration tool
    2. Click Configure
  5. Click Start Wizard
  6. Click Next
  7. On the Select a Team Project Collection,
    1. Click the Browse button
    2. On the Connect to Team Project Collection, click servers button
    3. On the add/remove Team Foundation Server click Add
    4. On Add Team Foundation Server, add your server information
    5. Click OK
    6. Click Close on add/remove Team Foundation Server
    7.  

    8. Click Connect button on the Connect to Team Project Collection window
    9. Click next

     

  8. On the Configure Team Foundation Build Service
    1. Check Use default settings, I noticed that the number of build agents maps to the number of CPU cores the build machine has
    2. Click Next
  9. On the Configure Build Machine window
    1. By default the Use a system account “NT AUTHORITY\SYSTEM” is selected. Change the value to “NT AUTHORITY\ NETWORK SERVICE”
    2. Click Next
  10. On the Confirm Settings Before Proceeding
    1. Click Verify
    2. There shouldn’t be any errors

    3. Click Configure
  11. On the Configuration Process window, click Next
  12.  

  13. Click Close

  • Click Close button to close the setup window