TFS 2018发布管道中目标计算机上的PowerShell失败 [英] PowerShell on Target Machines Fails in TFS 2018 Release Pipeline

查看:184
本文介绍了TFS 2018发布管道中目标计算机上的PowerShell失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是TFS2018的新手,我正在尝试配置CI/CD管道.我的构建成功,并且在发布管道中,我需要在部署服务器上运行powershell脚本,因此我在目标计算机"任务上使用了RUN PowerShell.我想,正确提供了所有必需的信息并运行了发行版,但在执行此任务时出现了如下错误

I'm new to TFS2018 and i am trying to configure CI/CD Pipeline. My Build succeeded and in my release pipeline, i need to run powershell script on my deployment server and so i used RUN PowerShell on Target Machine task. I suppose, provided all required info correctly and ran the release but got the error at this task as follows

Connecting to remote server xxx.xxx.xx.xx failed with the following error message : The WinRM client cannot process the request. Default authentication may be used with an IP address under the following conditions: the transport is HTTPS or the destination is in the TrustedHosts list, and explicit credentials are provided. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. For more information on how to set TrustedHosts run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.

请在下面找到我捕获的任务配置

Please find my task config captured below

我尝试将TFS2018服务器添加为目标服务器上的TrustedHost,但仍然存在问题.请提出建议和帮助.

I tried adding my TFS2018 server as trustedHost on target server but still issue exists. Please suggest and help.

推荐答案

  1. 通过Powershell将TFS服务器计算机添加到目标计算机中的TrustedHost.
    Set-Item WSMan:localhost\client\trustedhosts -value ServerDC

  1. Add the TFS server machine to TrustedHost in Target machine through powershell.
    Set-Item WSMan:localhost\client\trustedhosts -value ServerDC

确保此任务中提供的凭据具有管理员角色,并且在这种情况下,它们同时可以访问TFS.如果提供的凭据没有TFS管理员特权,则该任务将无法调用代理程序来触发VisualStudioRemoteDeployer.

Ensure credentials provided in this task is of admin role and at same time they have access w.r.to TFS in this case. If provided credentials does not have TFS admin previlage, the task cannot invoke agent to trigger VisualStudioRemoteDeployer.

这篇关于TFS 2018发布管道中目标计算机上的PowerShell失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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