TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

Team Foundation Server

Last modified: 20 April 2023

This page contains descriptions of the fields and options available when setting up a VCS root for connection to Microsoft Team Foundation Server:

Agent-Side Checkout



Agent-Side checkout is only supported on Windows agent machine (for Linux and Mac agent you may use server-side checkout). It is also required to have Team Explorer installed on agent machine.

TeamCity automatically creates TFS workspace for each Build Checkout Directory used. The workspace is created on behalf of user account that is specified in the VCS root settings.

Created TFS workspaces are automatically removed after a two-week idle time.

TFS does not allow to have several workspaces on a machine mapped to the same directory. TeamCity TFS agent-side checkout may attempt to remove intersecting workspaces in order to create new workspace that matches specified VCS root and checkout rules. Note, it is unable to remove workspaces created by another user.

Hosted TFS Login



You need to complete the following steps:

  • Install Team Explorer 2012 Update 1 (or Visual Studio 2012 Update 1) to TeamCity server (and build agents for agent-side checkout)

  • Login to TFS web site, click to edit user profile and specify "ALTERNATE AUTHENTICATION CREDENTIALS" in "CREDENTIALS" tab

  • In TeamCity VCS settings use ##LIVE##\<YOUR LOGIN> as login

For more details, please see post or doc