Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Not A Defect
-
Component/s: git-client-plugin, pipeline
-
Labels:None
-
Similar Issues:
Description
Possibly similar to JENKINS-59546:
I have a project with a Jenkinsfile containing a declarative pipeline in a git repository that also has submodules. I have activated submodule processing, and submodules are initialized correctly, but cloning them fails with a login error from the ssh connection opened by git.
It seems that multiple keys are tried (I get two "Permission denied" messages), although credentials config inside the project explicitly specifies which key to use.
Usually a configuration error in the submodule definition. For example, if the parent repository is cloned with ssh, then the submodule repository must be defined to use an ssh protocol URL to the submodule repository. Command line git needs the same protocol in the submodule as in the parent repo because it needs to use the same credentials.