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:

  1. EXAMPLE-DOMAIN\user
  2. user@domain.example.com

Visual Studio Online (a.k.a. TFS-as-a-service)

For Visual Studio Online, there are also two options:

  1. Personal access tokens (recommended)
    1. Click your name in the top right corner and select My profile.
    2. Select the Security hub.
    3. In the Personal access tokens area, select Add.
    4. 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.
    5. Click [Create Token] and copy the generated personal access token to the clipboard.
    6. 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.
  2. Alternate credentials
    1. Click your name in the top right corner and select My profile.
    2. Select the Security hub.
    3. In the Alternate credentials area, select Enable alternate authentication credentials.
    4. Enter a secondary user name and password, then click [Save].
    5. Back to Jenkins, re-enter those credentials in the User name and User password fields.