Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

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 support.atlassian.com and help our engineers to gather more info about your environment and provide solution.

Suggest an answer

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

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

58 views 0 4
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