【发布时间】:2021-07-07 08:54:11
【问题描述】:
我想在我的虚拟机上运行部署组。
我已运行我的注册脚本 (PowerShell),但它显示错误:
Exception calling "DownloadFile" with "2" argument(s): "The remote name could not be resolved:
'vstsagentpackage.azureedge.net'"
At line:1 char:1303
+ ... nalString, $True);}; $WebClient.DownloadFile($Uri, $agentZip);Add-Typ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : WebException
在Microsoft document发现需要在脚本中传递--proxyurl、--proxyusername和--proxypassword。
./config.cmd --proxyurl http://127.0.0.1:8888 --proxyusername "myuser" --proxypassword "mypass"
但是不知道要填什么值,尤其是网址。
我试图复制此脚本并将其放入我的注册脚本中,但仍然出现相同的错误。
任何帮助将不胜感激。
【问题讨论】:
标签: azure-devops azure-pipelines azure-pipelines-release-pipeline azure-deployment