简体   繁体   English

VSTS 构建代理 web 代理配置

[英]VSTS build agent web proxy configuration

I am trying to configure a build agent to work with a proxy as per the documentation.我正在尝试根据文档配置构建代理以使用代理。

Using VSTS Agent behind Proxy 在代理后面使用 VSTS 代理

.proxy set and being picked up, envriomental variables set but for some reason only the username is coming throuhg the password is left as undefined no matter how i set it. .proxy 设置并被拾取,设置了环境变量,但由于某种原因,只有用户名通过,无论我如何设置密码都未定义。 config.cmd, .env file , user variables. config.cmd、.env 文件、用户变量。

Agent.ProxyUrl=http://proxy:8888
Agent.ProxyUsername=Domain\Username
Agent.ProxyPassword=undefined

not sure of your setup above, but according to the overview you pointed out you need to不确定您上面的设置,但根据您指出的概述,您需要

  1. Create a .proxy file in the agent's root containing only the proxy URL在代理的根目录中创建一个仅包含代理 URL 的 .proxy 文件
  2. Then you need 2 environment variables VSTS_HTTP_PROXY_USERNAME and VSTS_HTTP_PROXY_PASSWORD然后你需要 2 个环境变量 VSTS_HTTP_PROXY_USERNAME 和 VSTS_HTTP_PROXY_PASSWORD

I've had success with this setup, in fact I also used a proxy environment variable before, but can't find the exact name now.这个设置我已经成功了,实际上我之前也使用过代理环境变量,但现在找不到确切的名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM