The name of the user that will be connecting to TFS/VSO to query history, checkout files, etc.
Team Foundation Server (on-premises)
For [on-premises] Team Foundation Server, the user name can be specified in two ways:
- EXAMPLE-DOMAIN\user
- user@domain.example.com
Visual Studio Online (a.k.a. TFS-as-a-service)
For Visual Studio Online, there are also two options:
- Personal access tokens (recommended)
-
Click your name in the top right corner and select My profile.
-
Select the Security hub.
-
In the Personal access tokens area, select Add.
-
Describe the token (use something like "Jenkins server at jenkins.example.com"), select an expiry timeframe, double-check the Visual Studio Online account the token will be valid for and, until the corresponding defect in VSO is fixed, select All scopes.
-
Click [Create Token] and copy the generated personal access token to the clipboard.
-
Back to Jenkins, enter the e-mail address associated with your VSO account as the User name and the generated personal access token as the User password.
- Alternate credentials
-
Click your name in the top right corner and select My profile.
-
Select the Security hub.
-
In the Alternate credentials area, select Enable alternate authentication credentials.
-
Enter a secondary user name and password, then click [Save].
-
Back to Jenkins, re-enter those credentials in the User name and User password fields.