On the Unix box, install TFS command line, (TEE-CLC) for example:
Do one action as the 'jenkins' user for the TFS user with the following flag set to true so that the user name / password are remembered for subsequent TFS command do not need a login, for example:
export TF_AUTO_SAVE_CREDENTIALS=true cd /var/lib/jenkins/jobs/group_name.project_name/workspace tf workspace -new '-comment:Workspace is for Lingoport Automation' -collection:https://tfs.company.com/tfs/DefaultCollection -location:local -permission:Private TFSLingoport '- login:DOMAIN\User.Name' Username: DOMAIN\User.Name Password:
where DOMAIN\User.Name has access to the https://tfs.company.com/tfs/DefaultCollection.
For example, a project could have the following config_vcs.properties after on-boarding it for TFS:
VCS_TYPE=tfs VCS_TFS_URL=https://tfs.company.com/tfs/DefaultCollection TF_SERVER_FOLDER=$/Products/REx/Events/Project/Service/UIModule TF_UNIQUE_WORKSPACE_NAME=TFSLingoport ## Optional -- associate with a tfs workitem # LINGOPORT_WORKITEM_ID=
Run the automation job: It should execute the TFS configuration for that job.