Powershell脚本任务中的TF Merge命令不起作用 [英] TF Merge command in Powershell script task is not working
本文介绍了Powershell脚本任务中的TF Merge命令不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用自定义代理程序池运行的管道中具有以下命令的powershell任务.
I am having powershell task with the following commands in my pipeline which is running using custom agent pool.
$TFFile = "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TF.exe"
$mergeCommand = " merge $/MyProject/dev $/MyProject/test /recursive"
Start-Process "$TFFile" "$mergeCommand"
$comment = "Automated merge check-in"
$CheckinToTarget = " checkin $/MyProject/test /comment:$comment /recursive /noprompt"
Start-Process "$TFFile" "$CheckinToTarget"
管道成功运行.但是源分支中的更改不会与目标分支合并.请让我知道此脚本中缺少的内容.
The pipeline is successfully running. But the changes in source branch is not merged with target branch. Please let me know what is missing in this scripts.
推荐答案
我正在发布此解决方案,以帮助其他面临像我这样的问题的人.在命令中使用/loginType:OAuth可解决我的问题.
I am posting this solution to help others who are facing the issue like me. Using /loginType:OAuth with the command solves my issues.
这篇关于Powershell脚本任务中的TF Merge命令不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文