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

Adding git capability causes "New access key is required but could not be added to Bitbucket Server"

I have bitbucket and bamboo on two separate windows servers.

I have git installed on bamboo server.

When I add Git capability I get "New access key is required but could not be added to Bitbucket Server"

I have installed keys in bamboo and bitbucket.

I can used git on the command line on bamboo server to clone repository. It does ask me for the passkey though.

With Git Capability added bamboo can no longer build. If I remove the git capability from bamboo, it can build. Refreshing the repository doesn't help.

I want to use the merging feature of bamboo which needs to Git capability added.

1 answer

1 vote
rsperafico Atlassian Team Feb 23, 2018

Hello @johngillwp,

Could you please have a look at https://jira.atlassian.com/browse/BAM-18511Improve error communication for "New access key is required but could not be added to Bitbucket Server" in Bamboo checking if any of the issues described relates to the problem you are facing?

Kind regards,

Rafael

Well better error reporting would help, but it doesn't really help right now getting it working.

I'm in the middle of evaluating bamboo, but if this isn't solvable then I don't see atlassian getting a sale.

If I go to the repositories tab of the plan, I see this

  • New access key is required but could not be added to Bitbucket Server.
  • com.atlassian.bamboo.executor.CancelException: Command was canceled: command system.git.executable version failed with code -1. Working directory was [\].
  • com.atlassian.bamboo.executor.CancelException: Command was canceled: command system.git.executable version failed with code -1. Working directory was [\].

    The problem is obvious... 
    system.git.executable needs to be d:\tools\Git\bin\git

    I tried that before, but I think it didn't work because my keys were wrong. So I blew it all away and started again, and this time forgot to set the path properly.

    I knew if I posted the question, I'd spot my own mistake.

    So basically the problem was PEBKAC (Problem exists between keyboard and chair).
rsperafico Atlassian Team Feb 23, 2018

I am glad the  https://jira.atlassian.com/browse/BAM-18511 - Improve error communication for "New access key is required but could not be added to Bitbucket Server" helped you out:

2. Git executable couldn't be found / launched.

Kind regards,

Rafael

Suggest an answer

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

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

199 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