Hello Jenkins users,
we have a project, where a new submodule has to be integrated, which is checked
out from a different location via SSH.
Our main repository (where the Jenkinsfile is located) is on Bitbucket (onPrem)
and now a repository from AzureDevOps has to be integrated.
How can I achieve, that a different credential is loaded out of the jenkins
credential store for this submodule?
We've the checkbox 'Use credentials from default remote of parent repository'
enabled for 'advanced sub-module behaviours'.
At my research I found solutions like 'reference to submodule via
https://user:pa...@dev.azure.com/' but since passwords on Azure need to be changed
regularly, a commit to the main repository would be required regularly just to
keep the credentials up to date. :(
I would prefer SSH usage for submodule anyway.
Thanks for every hint.
Dieter