How To Configure Build Services To A Specific TFS 2010 Collection

ינואר 25, 2010


In TFS 2010 we use collections, collections act as different “Servers” that the team can use in order to create separation between different groups of projects.


The build services can service one collection at a time.


In order to change the collection that  the Build Services is servicing do the following:


Step 1: Launch the “Team Foundation Administration Console”


Step 2: Choose the “Team Foundation Build Configuration” menu item


1_console_menue


You can see the collection that is being served at point 1.


Step 3: Stop the build service. (Point 2)


2_configure_build


Sep 4: Click on the build “Properties” option


3_click_properties


Step 5: In the properties window click the “Browse…” button.


4_browse_for_collection


Step 6: To choose the target collection mark it and click the “Connect” button


5_connect_to_a_collection


Step 7: Now that you have all in place start the build service.


Note: Some times it will fail to restart, just retype the Password of the account that runs the build service and try again.


6_Click_Start


At this point you will have the build service up and running, if it is the first time you specify the build services to service this collection you will need top create a controller and an agent.


Step 8: Click the “New Controller”.


7_New_controller


Step 9: Choose a name for the controller and click “OK”.


8_Controller_name


Step 10: Wait until the controller will be ready and add a new Agent


9_add_new_agent


Step 11: Choose a name for the Agent, you can also add tags and set the working folder for the agent, when done click “OK”


10_add_new_agent


Step 12: See that all are in read state in order to start creating builds, you can also add more agents for this controller.


11_done


Now all is done you can go to the collection’s projects and use the build services.


Have Fun!!!

הוסף תגובה
facebook linkedin twitter email

כתיבת תגובה

האימייל לא יוצג באתר. שדות החובה מסומנים *

7 תגובות

  1. gabiמאי 17, 2010 ב 12:20

    is it possible to have at the same time two built services? A service can be used only for a collection at a specific time. I have three collections with three projects. Can I have a build service or a build agent for each of my collection?

    הגב
  2. Eran Rusoמאי 21, 2010 ב 23:50

    Yes you can.

    What you will need to do is just install on more than one computer the build services and direct each to a diferent collection

    Eran Ruso

    הגב
  3. gabiמאי 28, 2010 ב 17:16

    yes, but on other computers I have installed Visual Studio Ultimate and I can not have both installed so I can install and on my station a build service.

    הגב
  4. Eran Rusoיוני 1, 2010 ב 10:36

    Gadi,

    I don't undestend the problem you are seeing, there is no connection between the installation of the build services and the Visual Studio 2010 Ultimate edition, they can be installed side by side.

    Eran Ruso

    הגב
  5. vjjיוני 6, 2010 ב 18:39

    You can configure more than one Build Service on a single server, see http://marknic.com/2010/05/14/MultipleTFS2010BuildControllersOnASingleBuildBox.aspx, and connect them one-to-one to Project Collections

    הגב
  6. Sachin Sharmaדצמבר 15, 2010 ב 15:14

    Hi,

    I installed TFS 2010 on my Laptop for practice purpose. and after that i am going to try build configuration on my local laptop.

    I am configured controller and agent to build host service(The Team Foundation Build Service runs a build controller and one or more build agents on a build machine.)

    I am getting error.please find the screen shot for same.

    and eventlog error is->

    Service cannot be started. Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException: TF30063: You are not authorized to access sachin-pc\DefaultCollection. —> System.Net.WebException: The remote server returned an error: (401) Unauthorized.

    at System.Net.HttpWebRequest.GetResponse()

    at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.AsyncWebRequest.ExecRequest(Object obj)

    — End of inner exception stack trace —

    at Microsoft.TeamFoundation.Client.TfsConnection.ThrowAuthorizationException(Exception e)

    at Microsoft.TeamFoundation.Client.TfsConnection.UseCredentialsProviderOnFailure(Action action)

    at Microsoft.TeamFoundation.Build.Machine.WindowsService.EnsureAuthenticated()

    at Microsoft.TeamFoundation.Build.Machine.WindowsService.InternalStart(Boolean noCheck, String namedInstance)

    at Microsoft.TeamFoundation.Build.Machine.WindowsService.OnStart(String[] args0)

    at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)

    הגב
  7. Eran Rusoדצמבר 22, 2010 ב 22:22

    Hi Sachin,

    It looks like a permissions issue, check that you have the currect permissions to manage builds.

    Have Fun!!!

    הגב