Proxy build agent

Answered

How do I provide the build agent with proxy Internet access on the corporate network?

0
10 comments

Since TeamCity 2017.1, it is possible to configure an agent to use a proxy in the buildAgent.properties file. Please refer to our documentation covering this topic here: https://www.jetbrains.com/help/teamcity/build-agent-configuration.html#Set+up+Agent+behind+Proxy

0

after that the agent will connect to the teamcity server without a proxy? can I set the no_proxy variable? a proxy is needed only to access the Internet for repositories, for example, to a github.

0

Edit: This is actually not supported on the build agents as I had believed, sorry.

If you have any connections that you wish to not use the proxy connection, you'd also need to add a nonproxy entry to the buildAgent.properties file.

teamcity.http.nonProxyHosts=localhost|*.mydomain.com
teamcity.https.nonProxyHosts=localhost|*.mydomain.com

We have examples of such entries in our Server Proxy Configuration documentation, but the same approach works for the build agents.

https://www.jetbrains.com/help/teamcity/how-to.html#Configure+TeamCity+to+Use+Proxy+Server+for+Outgoing+Connections

0

if so, he cannot connect to teamcity. 

teamcity.http.proxyHost=http://host

teamcity.http.proxyPort=8080

teamcity.https.proxyHost=http://host

teamcity.https.proxyPort=8080

teamcity.http.nonProxyHosts=*.host.ru|*.host.com
teamcity.https.nonProxyHosts=*.host.ru|*.host.com

0

how to make it connect to teamcity server without proxy?

0

We need the agent to have proxy internet access at build time in order to install yarn.
Connecting the agent to the teamcity server without a proxy.

0

Can you tell me how you are installing yarn? Are you using a command line runner for this step?

0

Yes, via the command line

0

 What OS is the build agent running and which installation commands are you using?

0

os ubuntu

yarn config set proxy http://host:port/
yarn config set https-proxy http://host:port/

yarn install

0

Please sign in to leave a comment.