don't know if the title describes anything about what I'm trying to say but here it is:
I would like to know what would be the "best practice" when setting up Jenkins with git submodules. Both the main and submodule repo are accessed over ssh, and since we have several users all of these have their individual user name. This is the case also for Jenkins that has its own user. HOWEVER, we've (I have) stumbled upon a problem. If I create a submodule: git submodule add ssh://my-user-name@address-to-module-repo and push it, Jenkins will refer to me as a user when trying to fetch the submodule, which obviously will fail. And if some other user does a pull, my username will still be in the paths ( in .gitmodule, .git/config et cetera).
I found another post Git submodules and ssh access handling sharing between "normal" users, but it doesn't really solve the issue when Jenkins will try to build, since I'm only allowed to execute shell cmd's after Jenkins has fetched everything I cannot do as mentioned in the link, or can I (Jenkins newbie)?
So, to sum things up. How can this be solved so that Jenkins will use its own user when fetching the submodule over ssh?
Br, Mr. Pistol