Details
-
Type:
Bug
-
Status: Open (View Workflow)
-
Priority:
Blocker
-
Resolution: Unresolved
-
Component/s: git-client-plugin
-
Labels:None
-
Environment:jenkins:2.124
git-plugin:3.9.0
git-client:2.7.2
-
Similar Issues:
Description
When I use the Jenkins pipeline to build a job and pull the git code, it prompts the error in Figure 1 and Figure 2 is the git checkout configuration in my pipeline. Please help me to see what the reason is, thank you!
If the submodule was renamed, you could be seeing JENKINS-54097 or JENKINS-38860. Wipe the workspace and try again in that case. The plugin does not handle submodule renaming well.
If a submodule is referenced in the .gitModules file that does not exist, you could be seeing JENKINS-43977.
If it is not one of those cases, you should confirm that the parent repository and the submodule repository are using the same protocol. If the parent was retrieved with http or https, then the submodule must also be retrieved with http or https. If the parent was retrieved with ssh, then the submodule must also be retrieved with ssh.