TFS

Description

Team Foundation Server (TFS) is a Microsoft product which provides source code management, reporting, requirements management, project management, automated builds, lab management, testing and release management capabilities. This Repository Connector provides access to the sources hosted in TFS's revision control system.

For more details, refer to https://www.visualstudio.com/products/tfs-overview-vs.

Note

The TFS repository connector (Team Foundation Server - Team Foundation Version Control) assumes that a TFS command-line client (Visual Studio Client or Team Explorer Everywhere) is installed on the Squore server and fully functional. The configuration of this client must be set up in the tfs_conf.tcl file. The repository connector form must be filled according to the TFS standard (eg. the Project Path must begin with the '$' character...). Note that this repository connector works with a temporary workspace that is deleted at the end of the analysis. The following is a list of commands used by the TFS Repository Connector to retrieve sources:

  • tf workspace [/login:$username,$password] /server:$url /noprompt /new $workspace
  • tf workfold [/login:$username,$password] /map $path $tempFolder /workspace:$workspace 
  • tf get [/login:$username,$password] /version:$version /recursive /force $path
  • tf workspace [/login:$username,$password] /delete $workspace
  • tf view [/login:$username,$password] /server:$artefactPath

Usage

TFS has the following options:

  • URL (URL, mandatory) Specify the URL of the TFS server.

  • Path (path, mandatory) Path the project to be analysed. This path usually starts with $.

  • Version (version) Specify the version of the sources to analyse. This field accepts a changeset number, date, or label. Leave the field empty to analyse the most recent revision of the sources.

  • Authentication (useAccountCredentials, default: NO_CREDENTIALS)

  • Username: (username)

  • Password (password)

The full command line syntax for TFS is:

-r "type=TFS,URL=[text],path=[text],version=[text],useAccountCredentials=[multipleChoice],username=[text],password=[password]"