d.guthmann schrieb am Dienstag, 11. März 2025 um 07:36:12 UTC+1:
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'. I would configure the submodule with the correct username( if it differs from the bitbucket one) and use a shared ssh private key ( upload the public key to both bitbucket and azure) as the easiest solution. Or use th ssh-agent plugin to inject all relevant key into your pipeline. At my research I found solutions like 'reference to submodule via https://user:[email protected]/ <https://user:[email protected]/>' 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 -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/jenkinsci-users/a86dc0b2-1ac7-4a53-a7bd-2db331e94f1bn%40googlegroups.com.
