Configure proxy for Git operations in Bamboo?

My file contains some proxy settings:

JVM_REQUIRED_ARGS=" -Dhttp.proxyPort=8080 -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts='localhost|127.*|[::1]|* ' -DcvsClientLog=system"


Normally we use an internal Stash as VCS. For one project we need a cloud hosted git repo.

I successfully added this one as a linked repository. Bamboo lists the available branches...

However when I set up a polling build trigger using the repo I get: unable to detect changes, unknown host

Should I set the HTTP_PTOXY and HTTPS_PROXY environment variables somewhere in the startup script? Or what is the best way to approach this issue

Bamboo: 5.9.10 on RedHat

1 answer

1 accepted

2 votes

Hi Charlie,

If you're using proper git (rather than jgit), then the git process runs outside the JVM, therefore the Java properties you have defined in will be ignored. Setting a proxy server for git requires you to run git config, see this thread on StackOverflow.




Premier Support Engineer


yes we are using regular git.

Are the environment variables no alternative to git config?

On the linux system we have the environment variables. When I start Bamboo as non-service I don't get the unknown host error. That's why I think adding them to the service script should solve the problem

Hi Charlie,

Actually, you're right, I just checked the documentation for git and it appears the the HTTP_PROXY and HTTPS_PROXY environment variables take precedence if they're set.


That means that if the variables aren't set globally in /etc/environment, you can set them in <BambooInstallationDir>/bin/




Premier Support Engineer


Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,184 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot