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

How can I configure Bamboo to use git via HTTPS?

dolan August 19, 2019

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
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 20, 2019

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

dolan August 20, 2019

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.

Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 20, 2019

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

dolan August 20, 2019
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 :)

Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 21, 2019

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
AUG Leaders

Atlassian Community Events