升级到 Azure DevOps Server 2019 和发布管道失败,出现 VssServiceResponseException 页面未找到错误

Ste*_*edy 5 powershell azure azure-devops azure-pipelines azure-pipelines-release-pipeline

我们在 TFS 2017 上运行的发布脚本之一不适用于 Azure DevOps 2019 SP 1。

有一个在目标机器上运行远程命令的 powershell 脚本 (PowerShellOnTargetMachines.ps1)。它是标准的可用管道任务集的一部分。你可以在这里看到它:https : //github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/PowerShellOnTargetMachinesV3/PowerShellOnTargetMachines.ps1

当它运行此脚本时,它会失败并显示以下内容:

[调试] 无法为给定的 json 创建环境对象 - 解析值时遇到意外字符:A. 路径 '',第 0 行,位置 0。

[调试]Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException:找不到页面。

[调试]已处理:##vso[task.logissue type=error;code={"Task_Internal_Error":FaileToFetchResourceProperties};]

最近有一篇关于此问题的 Microsoft 论坛帖子,但没有任何好的答案。它实际上建议发布到 StackOverflow。