Continuous integration using Team Foundation Server 2012 express edition – Build service configuration

This post is about creating build configuration for TFS Express 2012. In this we will create both Build controllers and Build Agents. The build controller processes the workflow and typically performs mostly lightweight work such as determining the name of the build, creating the label in version control, logging notes, and reporting status from the build. Each build controller is dedicated to a single team project collection. The controller accepts build requests from any team project in a specified team project collection and each build agent is dedicated to and controlled by a single build controller. The build agent does the processor-intensive and disk-intensive work. This work includes getting files from and checking files into version control, provisioning the workspace, compiling the code, and running tests.

You can access the TFS Administration console from All Programs > Microsoft Visual Studio Team Foundation Server 2012 > Team Foundation Server Administration Console. And select the Build Configuration node from the Treeview. The screen will similar like this.

Build Configuration

Build Configuration

To start the configuration, click on the Configure Installed Features link button, it will popup a wizard like this.

Build Configuration Center

Build Configuration Center

Click on Start Wizard button, which will start the build service configuration wizard.

Build Configuration - Wizard

Build Configuration – Wizard

The next button will navigate to the Team Project collection screen, as we have installed Application tier, it will select the default Project collection, it will be http://localhost:8080/tfs/defaultcollection.

Select Team Project collection

Select Team Project collection

Next is the Build services screen, where we can configure the build controllers and build agents. As I am doing a single machine setup, I am using the default setting, with one Agent.

Build Services - Controller and Agent

Build Services – Controller and Agent

In the next screen we can specify, under which account the TFS service should run. As I am doing it on my home PC, I am using the default user.

Build Service User configuration

Build Service User configuration

Next screen will confirm the configuration.

Build configuration - Settings confirmation

Build configuration – Settings confirmation

You can verify the system of readiness, using the Verify button.

System Readiness verification

System Readiness verification

And finally click on the configure button, which will completes the configuration, and will display a screen like this.

Build configuration - Completed

Build configuration – Completed

To review the results, click on the next button, which will popup a screen like this.

Build configuration - Success

Build configuration – Success

Close the Wizard, and if you select the Build Configuration (by default it will be selected), it will show a screen like this. Here we can see the Build controllers and Build Agents with their status.

TFS Administration console after build service configuration

TFS Administration console after build service configuration

Next post will be about Connecting to TFS Express from Visual Studio. Happy Programming :)