For my Jenkins build, I need to manage a Github repository to automate building a project. However, the issue is that this repository needs to pull a submodule from Bitbucket. This requires two difference instances of authentication, one for each service. As of now, Jenkins is only allowing the use of a single set of credentials, using a username and SSH key. Is there a way to specify a different set of credentials for each pull?
Assuming you are populating a tree of files to do a build, and some files come from Git and some from BitBucket, here are a few suggestions:
-Use two Jenkins jobs, one triggered by another
-Use a script run by a Jenkins job
-Add a pull to your make or other build toolchain to include the outside library