Skip to main content

Installing and Configuring a Build Service, Build Controller and Build Agent for VS2010 and TFS2010

Install Team Foundation Build Service

This procedure describes how to install Team Foundation Build Service.

If you're installing this build service as a part of Lab Management, choose the "tfsadmin" account that you used while configuring TFS2010 for Lab Management. (Have a look at the "Prerequisites" http://msdn.microsoft.com/en-us/library/dd380687.aspx).

From the installation DVD/ISO for Visual Studio Team Foundation Server, start either the 32-bit or the 64-bit setup.exe to match the operating system that you are running.


On the Welcome page, click Next.


On the License Terms page, read the terms of the license. Click I have read and accept the license terms, and then click Next.

Click Build Service, and click Install.





If the installation wizard prompts you to restart your server, click Restart Now. After the server is restarted, installation resumes. Click Finish. ( I got an error with my installation, you shouldn't. )

Configuring the Build Service


Now that you have installed the build service components, you should be able to see Team Foundation Server Admin Console in your start menu. To open the Team Foundation Server Configuration tool from the Start menu
  • Click Start, point to All Programs, point to Microsoft Team Foundation Server 2010, and then click Team Foundation Administration Console.
  • The Team Foundation Administration Console appears.
  • Click Build Configuration, and then click Configure Installed Features.
  • The Team Foundation Server Configuration tool appears.


Note: If you can't see "Build Configuration" it may be because TFS Power Tools at some point was installed on the system. There was a problem with the backup power tool that caused some nodes not to show up. If that’s the case, under HKLM\Software\Microsoft\TeamFoundationServer\10.0\Plugins there will probably be two nodes – one for backup and one for TeamBuild – removing the backup plug-in node would probably resolve the problem. You could also check the admin log to see if there are exceptions in there, and perhaps export the TFS registry key above. 

Under the build configuration navigation tab, you should see a link to "Configure Installed Features". Clicking the link should start the wizard.



Choose your team project collection.








Ensure that you configure the build service later.



Choose the "tfsadmin" account that you used while configuring TFS2010 for Lab Management.






Now that you've finished the configuration, you should see the build service in the build configuration tab.

You can now use the links to create a build controller & a build agent.













Comments

Popular posts from this blog

Internet Information Services(IIS) reveals its real or internal IP Address

In the ever changing world of global data communications, inexpensive Internet connections, and fast-paced software development, security is becoming more and more of an issue. Security is now a basic requirement because global computing is inherently insecure.

Keeping that in mind, we recently ran our flagship product through a security audit. It was such a helpful exercise in tying-off any remaining lose ends in our application in terms of application security. 
Based on the security audit report, there was a relatively minor issue that appeared when accessing the /images directory of our application. Turns out that the Location response header of the 301 request returns an Internal IP address. The issue is detailed below.

Issue reportedInternet Information Services (IIS) may reveal its real or internal IP address in the Location header via a request to the /images directory. The value returned whilst pen testing is https://10.0.0.10/images.

The riskInformation regarding internal IP add…

IIS Request Filtering to block HTTP Verbs (For example Trace)

The issueRequest Filtering is a built-in security feature that was introduced in Internet Information Services (IIS) 7.0. This can be used to block specific verbs like "Trace".

When request filtering blocks an HTTP request, IIS 7 will return an HTTP 404 error to the client and log the HTTP status with a unique substatus that identifies the reason that the request was denied. Verb Denied.

HTTP SubstatusDescription404.5URL Sequence Denied404.6Verb Denied404.7File Extension Denied404.8Hidden Namespace404.1Request Header Too Long404.11URL Double Escaped404.12URL Has High Bit Chars404.13Content Length Too Large

Unit Testing HttpContext.Current.Session in MVC3 .NET

We recently changed some functionality where during the "CREATE" process, we go through a wizard to save application data. This data is saved only to the session in the final step when the user clicks the final submit.

This was easy enough to implement but when I started writing unit tests for my static methods that Add, Update, Delete or Modify the contents of our application data in the session, I got the following error:
System.NullReferenceException: Object reference not set to an instance of an object.

Turns out I had forgotten to setup the HttpContext.
The following "TestInitialise" method fixed my problem :)

[TestInitialize]
public void TestSetup()
{
// We need to setup the Current HTTP Context as follows:

// Step 1: Setup the HTTP Request
var httpRequest = new HttpRequest("", "http://localhost/", "");

// Step 2: Setup the HTTP Response
var httpResponce = new HttpResponse(new StringWriter());

// Step 3: Se…