0

我正在尝试使我的构建代理与已配置的代理服务器一起工作。代理服务器地址为:http://MY_SERVER_DNS:8081

在代理目录内的构建机器上,我创建了一个 .proxy 文件,其中包含上述代理地址并创建了相关的环境变量(VSTS_HTTP_PROXY_USERNAME、VSTS_HTTP_PROXY_PASSWORD)。

重新启动构建代理服务后,VSTS 中的指示器变为红色(而不是绿色)。附上部分(我猜最相关的)代理日志:

{ Request = Method: GET, RequestUri: 'https://siemplify.visualstudio.com/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1', Version: 1.1, Content: <null>, Headers:
{
  User-Agent: VSServices/15.255.65000.0
  User-Agent: (NetStandard; Microsoft Windows 6.3.9600)
  User-Agent: VstsAgentCore-win7-x64/2.120.2
  User-Agent: (Microsoft Windows 6.3.9600)
  X-VSS-E2EID: 5aadb1b3-6269-4998-b258-4a5fcc1b9345
  Accept-Language: en-US
  X-TFS-FedAuthRedirect: Suppress
  X-TFS-Session: 13f3aaa0-7f5c-40e1-8af0-0b5feb53d4bc
  Expect: 100-continue
}, LoggingRequestId = ab31853f-a392-486f-b288-f9ca4bdee28c, Timestamp = 237057153 }
[2018-03-08 14:15:50Z INFO HttpTrace] Trace System.Net.Http.Response event:
{ Response = StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
  Connection: close
  Date: Thu, 08 Mar 2018 14:15:32 GMT
  Server: Microsoft-HTTPAPI/2.0
  Content-Length: 324
  Content-Type: text/html; charset=us-ascii
}, LoggingRequestId = ab31853f-a392-486f-b288-f9ca4bdee28c, TimeStamp = 237507550 }
[2018-03-08 14:15:51Z ERR  VisualStudioServices] GET request to https://siemplify.visualstudio.com/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. System.Net.Http.HttpRequestException: Error while copying content to a stream. ---> System.IO.IOException: Unable to read data from the transport connection. The connection was closed before all data could be read. Expected 324 bytes, read 0 bytes.

任何帮助将不胜感激!

4

2 回答 2

0

您可以首先通过右键单击代理池来升级您的私有构建代理,然后单击更新所有代理。最新版本的构建代理是 2.129.1。

更新代理后,尝试按照以下链接中的步骤在 Web 代理后面运行 v2 私有代理:VSTS、TFS 2018 RTM 和更新版本

通过--proxyurl,--proxyusername--proxypassword在代理配置期间。

例如:

./config.cmd --proxyurl http://127.0.0.1:8888 --proxyusername "1" --proxypassword "1"
于 2018-03-09T07:49:35.663 回答
0

确保您创建的代理文件在您在代理文件中提到的代理地址周围没有空格。确保将其修剪掉。

更多信息在这里链接

于 2018-03-13T09:15:29.413 回答