Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to configure pipelines with multiple git submodules?

Benson Melvin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 10, 2018

I'm working on a collection of internal company libraries that are used in multiple projects. Git Submodules are how we've include each of the libraries in the projects, locally I'm able to use 'git submodule update --init' to pull in the code.

In pipelines though I have an issue pulling the libraries. I've tried to set up the submodules with ssh urls but I run into issues when trying to pull in multiple projects.

To set up, I create an SSH key in the main project and then add the public key to the Access Keys section of the library repository. When I try to add the public key to a second library repository I get a message that the key is already used in another repository.

Is there any way to set up SSH keys to multiple repositories?

Also, why would SSH Keys be limited to use in a single repository? I assume it's security related but I don't see how the single use of a public key increases that.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events