I am having a problem with my submodules in bamboo. I'm using GIT. This is a Windows machine. I was able to get the submodules to work by adding my ssh key into the bamboo home directory, but I don't know if that same fix is supposed to work with an agent.
Has anyone been successful in cloning submodules using an remote agent?
I feel you are experiencing the issue reported at https://jira.atlassian.com/browse/BAM-11369 The available workaround are two folds:
# Use private key fro the repository that are not protected by passpharase
# Setting up each agent .ssh/config configuration manually to allow Remote Agent machines access your git repository via ssh (using private SSH keyfiles stored on those machines).
Try the options and lets know how it goes for you.
Here is the error I get:
Warning: Permanently added '[StashURL:7999' (RSA) to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Clone of 'ssh://git@StashURL:7999/sm/windows-common.git' into submodule path 'common' failed)
When I run the command in the command prompt, it clones the repo just fine.
You know. I never did, but i did find a solution for myself.
I'm not sure if it was my particular instance or just how bamboo handles submodules, but it kept looking for the ssh key in "$Git_repository/y/.ssh". I ended up just comitting "/y/.ssh/config" into my repository that pointing to the ssh key I wanted to use, then everything worked just fine.
Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs