Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Configure proxy for Git operations in Bamboo?

Charlie Misonne Community Leader Jul 04, 2016

My setenv.sh file contains some proxy settings:

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

 

Normally we use an internal Stash as VCS. For one project we need a bitbucket.org 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 bitbucket.org repo I get: unable to detect changes, unknown host bitbucket.org

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
Answer accepted

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 setenv.sh will be ignored. Setting a proxy server for git requires you to run git config, see this thread on StackOverflow.

 

Cheers,

Christian

Premier Support Engineer

Atlassian

Charlie Misonne Community Leader Jul 04, 2016

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.

Edit:

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

 

Cheers,

Christian

Premier Support Engineer

Atlassian

Charlie Misonne Community Leader Jul 04, 2016

Ok, thanks! :smile:

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

694 views 1 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you