Bamboo git submodule support confirmation Edited

I have had some failed attempts to utilise git submodules in my git project. The repository is classified as a BitBucket one with submodules checked in advanced. The logs in the build however read as "host key verification failed". I have tried configuring ssh keys on the Windows remote agent (running as a service) and can correctly execute git submodule update on the server directly using git bash logged in as that user.
Then I came across this older post which suggests that the support is limited in bamboo for submodules.

Currently we are adopting the multiple repository checkout approach as a work around but some of my colleagues prefer to use submodules. Can Atlassian confirm whether Bamboo support for git submodules has improved and if so in what version?

Alternatively it seems to me that the Bamboo agent is not correctly mapping its ssh keys at build time during a repository checkout. Is there something I'm missing?

2 answers

1 accepted

0 votes
Accepted answer

I've fixed this up by correctly setting up the HOME directory in the agent boxes. It would be nice to know if Atlassian every plan on adding more support for submodules in the future. 

I'm getting the same issue. Can you clarify what you mean by setting up the home directory in the agent boxes?

I'm just leaving a note here if someone comes up with a similar problem as I spent a lot of time figuring it out.

I had a similar issue when running the remote as a service but with a different fix: 

When the Service ("Bamboo Remote Agent") is created, it is created as the "Local System" user, instead you need to change it to your PC account user (the one that Git is linked to).

To do this just go to Windows Task Manager in the Services tab and on the "Services..." button in the bottom.

Right click on the "Bamboo Remote Agent" service and select Properties then in the "Log On" tab Log on as: this account...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

142 views 0 6
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you