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

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.