从vNext cmd行步骤运行TFPT.EXE以执行/ convertToBranch [英] Running TFPT.EXE from a vNext cmd line step to perform /convertToBranch

查看:83
本文介绍了从vNext cmd行步骤运行TFPT.EXE以执行/ convertToBranch的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试自动化我公司的QA分支创建


我已启动并运行本地代理。我的构建定义仅位于我的团队网站上,只有两个步骤:


步骤1- ## [命令] tf.exe分支$ / Project / Main  $ / Project / QA  / checkin  / noprompt / loginType:OAuth /login:.,******** 

- >步骤1工作得很好并创建包含所有文件的QA文件夹签入文件。



第2步 - &#; [#] [command] tfpt.exe  branches / convertToBranch / collection:[my site] / recursive $ / Project / QA 


- 错误: 无法确定工作区。 



是否可以重复使用在获取源步骤中创建的工作区?



谢谢大家!

解决方案

嗨LeandroLemos,



感谢您在此发帖。



因为您没有指定在源代码管理中映射的文件夹的本地路径。您只需要在tfpt.exe分支命令之前添加命令
cd文件夹的本地路径,然后命令可以成功找到分支,之后您仍需要检查更改手动,然后文件夹可以成功转换为分支。



最好的问候


Limitxiao Gao


I'm trying to automate the QA branch creation on my company

I've a local agent up and running. my build definition is located on my team site with 2 steps only:

Step 1- ##[command]tf.exe branch $/Project/Main  $/Project/QA /checkin  /noprompt /loginType:OAuth /login:.,********  
-->Step 1 WORKS great and creates the QA FOLDER with all files and checked in the files.

Step 2 - ##[command]tfpt.exe  branches /convertToBranch /collection:[my site] /recursive $/Project/QA 

--ERROR: Unable to determine the workspace. 

Is possible to reuse the workspace created during the Get Sources step?

Thank you all!

解决方案

Hi LeandroLemos,

Thank you for posting here.

Because you did not specify the local path of the folder which is mapped in source control. You just need to add the command cd local path of the folder before the tfpt.exe branches command, then the command could find branch successfully, after that you still need to check in the changes manually, then the folder can be converted to branch successfully.

Best Regards

Limitxiao Gao


这篇关于从vNext cmd行步骤运行TFPT.EXE以执行/ convertToBranch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆