Hi everyone,
I'm trying to set up a multibranch pipeline on a repository containing a submodule that lives under the same Github account as my main repository. You'll find a screenshot of the job configuration below.
However, credentials from the parent (main) repo don't seem to be used to pull the submodule. Therefore, the "checkout scm" step fails with the following error:
Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Many thanks in advance for your help.
-Étienne
Are your submodules defined to use the same protocol as the parent repository? For example, the submodule credentials implementation assumes that the same credential used for the parent (for example ssh protocol with private key) is used with all the submodules.
If you clone the parent repository with https but one of your submodules is referenced using ssh protocol (git@github.com or ssh://git.example.com/), then the credentials won't work.