Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get a project to build using git/ssh/bamboo

Greg Polito August 28, 2018

I am finding a lot of answers to this question, but I am unable to get it to work so far. I am wondering if there are other tools or ways I can use to see where/how I am not getting access. And how I can try to figure out how to get this to work. Also, the firewall is turned off too, so there should be nothing stopping them from connecting. I also have it listed in the repositories...

This is the error I am getting:

ECMDERR Failed to execute "git ls-remote --tags --heads ssh://bitbucket.ourcompany.org:7999/manage/documents.git", exit code of #128 Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

The strange thing is that I can reference our bitbucket server when creating bamboo build plans, and I have run this command through git bash on our bamboo server and no longer getting any errors. I have created SSH keys and added it to my user account on Bitbucket, and adding it to our bamboo server. I also added them to 'Trusted Sites'.

1 answer

0 votes
Foong
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 4, 2018

Is the Bamboo repository created with Repository host "Git" or "Bitbucket Server / Stash"?

What is your Bamboo version?

Greg Polito September 4, 2018

We are using Bitbucket Server/Stash...not that it would/should. I created the SSH Key on the bamboo server, and added the key to the bitbucket project, and it is in the ssh keys on bamboo....Version 6.5.0/Build number 60509. I am able to include the project in my tasks in bamboo, but when running a bower install, it cannot run.

Foong
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 4, 2018

All tasks, apart from Source Code Checkout task, will not use the SSH key stored in Bamboo database.

Please use Source Code Checkout task to perform any checkout first.

Greg Polito September 4, 2018

We do...source checkout is the first step we have. That is where we are getting bit bucket to get our project...the first step...

2) Script option - script is the following 

NuGet.exe restore xxxx.site.sln

3) script  again.... this is within our visual studio project

cd .\code
bower install

Foong
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 6, 2018

bower install command will install dependencies listed in bower.json file.

Edit the bower.json file so that it will refer to the local files (that have been checkout) instead of the Git repository URL.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events