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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How can I configure Bamboo to use git via HTTPS?

We have a self hosted bitbucket instance, and a self hosted bamboo server, and I want to be able to pull code using bamboo.  However, ssh is disabled at an organizational level, and I figured I would be able to pull code over https.  I can't find any way to do this, am I missing something?

I have a username and password in shared credentials, and manually set up a linked git repository using `https:....`

error: cannot spawn sh: No such file or directory
error: cannot spawn sh: No such file or directory
fatal: Authentication failed for ${repository url}

 Any tips for getting this to work?

1 answer

0 votes

It works only if you configure pure Git repository at Bamboo side, not Bitbucket Server repository type.

Thanks for your reply, but that's what I have done.  You call it a "pure git repository" but I referred to it as "linked git repository." I believe we are talking about the same thing.  I am puzzled why if "cannot spawn sh" then it says "authentication failed for repo" and it locks the account after 5 tries.

What Bamboo says when you click Test connection button on linked repository setup?

error: cannot spawn sh: No such file or directory
error: cannot spawn sh: No such file or directory
fatal: Authentication failed for 'https://{shared_credentials_account_name}@{repo_host}/scm/{project}/{repo_name}.git/'

To be clear, on this linked repository I have the following:

Repository host: Git


Could this possibly be related to how I had configured as Bitbucket Cloud server before?  I noticed this morning under Build Resources > Repository Settings, the repo had a ssh url, so I deleted the cache directory, but it didn't fix the issue.  The new "cache directory" has an https url, as expected, but doesn't change the output of "test connection."  Maybe I have a lingering config... (git remote?) I will dig around tomorrow.  I am probably stupid and need to add "sh" to path on the bamboo server :)

I would suggest you to create support request at and help our engineers to gather more info about your environment and provide solution.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events