Difference between revisions of "TFS"
(→TFSUser) |
(→TFSUser) |
||
Line 5: | Line 5: | ||
== TFSUser == |
== TFSUser == |
||
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: |
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: |
||
+ | |||
− | <code> |
||
− | export TF_AUTO_SAVE_CREDENTIALS=true |
+ | <code> export TF_AUTO_SAVE_CREDENTIALS=true |
cd /var/lib/jenkins/jobs/group_name.project_name/workspace |
cd /var/lib/jenkins/jobs/group_name.project_name/workspace |
||
Line 14: | Line 14: | ||
Username: DOMAIN\User.Name |
Username: DOMAIN\User.Name |
||
− | Password: |
+ | Password:</code> |
− | </code> |
||
where DOMAIN\User.Name has access to the https://tfs.company.com/tfs/DefaultCollection. |
where DOMAIN\User.Name has access to the https://tfs.company.com/tfs/DefaultCollection. |
Revision as of 20:12, 2 December 2016
Install TFS
On the Unix box, install TFS command line, (TEE-CLC) for example:
/var/lib/jenkins/TEE-CLC-12.0.2
TFSUser
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.
Configure config_vcs.properties
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=
Test
Run the automation job: It should execute the TFS configuration for that job.