Powershell tf构建签入错误 [英] Powershell tf build checkin error

查看:95
本文介绍了Powershell tf构建签入错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在构建定义中添加了PowerShell任务。

I’m adding a PowerShell task into the build definition.

类型为文件路径的PowerShell任务。

The PowerShell task with type File Path.

我'我一直得到错误TF30063:如果我使用构建定义运行,则无权访问服务器路径。\\

I’m consistently getting the error TF30063: You are not authorized to access server path\collection if I am running with the build definition.

相同的脚本我能够成功执行而不会出现错误通过使用power shell脚本工具。

The same script I’m able to execute successfully without error by using the power shell script tool.

CD $ WorkingDirectory   

CD $WorkingDirectory  

$ CheckInComment =" *** NO_CI ***"

$CheckInComment="***NO_CI***"

推荐答案

您好YC

欢迎来到MSDN论坛。

Welcome to the MSDN forum.

您能否与我们分享详细步骤我们在我们这边重新编写它?

Could you share us the detailed steps for us to repro it in our side?

根据错误代码,它表明问题的原因与权限有关。据我所知,PS脚本应存储在远程存储库中,代理服务器没有有效权限。

Based on the error code, it indicates that the cause of issue is relevant to permission. As I know, PS script should be stored in remote repository, agent server has not a valid permission.

以下是构建任务中运行PS脚本的技巧博客,请尽可能检查:

https://blogs.msdn.microsoft.com/premier_developer/2016/04/13/写作提示 - powershell-scripts-to-use-in-build-and-release-tasks /

Here is a tips blog of run PS script in build tasks, please check it if possible: https://blogs.msdn.microsoft.com/premier_developer/2016/04/13/tips-for-writing-powershell-scripts-to-use-in-build-and-release-tasks/ .

期待回复。

祝你好运

5月


这篇关于Powershell tf构建签入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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