Team Foundation Server
This page contains descriptions of the fields and options available when setting up a VCS root for connection to Microsoft Team Foundation Server:
Option | Description |
---|---|
Team Foundation Server Url | Team Foundation Server URL in the following format: Starting with TFS 2010, the URL can also include sub-path: |
Specify user to access Team Foundation Server. This can be a user name or | |
Enter the password of the user entered above. | |
Specify the root using the following format: |
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