Proxy build agent
Answered
How do I provide the build agent with proxy Internet access on the corporate network?
Please sign in to leave a comment.
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
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.
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.
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
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
how to make it connect to teamcity server without proxy?
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.
Can you tell me how you are installing yarn? Are you using a command line runner for this step?
Yes, via the command line
What OS is the build agent running and which installation commands are you using?
os ubuntu
yarn config set proxy http://host:port/
yarn config set https-proxy http://host:port/
yarn install