Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

190 views 4 6
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