Difference between revisions of "TFS"

From Lingoport Wiki
Jump to: navigation, search
(TFSUser)
(TFSUser)
 
(4 intermediate revisions by the same user not shown)
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
 
   
  +
<pre>
cd /var/lib/jenkins/jobs/group_name.project_name/workspace
 
  +
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'
 
  +
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
+
Username: DOMAIN\User.Name
  +
Password:
 
  +
</pre>
Password:
 
</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.

Latest revision as of 20:13, 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.