Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62651

Command "git config --get submodule.sub.url" returned status code 1: Could not perform submodule update

    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!

       

       

        Attachments

          Activity

          Hide
          markewaite Mark Waite added a comment -

          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.

          Show
          markewaite Mark Waite added a comment - 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.
          Hide
          lengyi Yi Leng added a comment -

          Mark Waite  Thank you so much for answering,I confirmed that the submodule has not been renamed, and the parent module and the submodule are the same protocol. Rebuilding the workspace still fails. Do you have any other suggestions? I have been troubled by this problem for a long time

          Show
          lengyi Yi Leng added a comment - Mark Waite   Thank you so much for answering,I confirmed that the submodule has not been renamed, and the parent module and the submodule are the same protocol. Rebuilding the workspace still fails. Do you have any other suggestions? I have been troubled by this problem for a long time
          Hide
          markewaite Mark Waite added a comment -

          No, I do not have any other suggestions beyond the suggestions mentioned in the bug reports that I linked in the previous comment.

          Show
          markewaite Mark Waite added a comment - No, I do not have any other suggestions beyond the suggestions mentioned in the bug reports that I linked in the previous comment.
          Hide
          lengyi Yi Leng added a comment -

          Okay, can you recommend me an expert to solve this problem?

          Show
          lengyi Yi Leng added a comment - Okay, can you recommend me an expert to solve this problem?
          Hide
          markewaite Mark Waite added a comment -

          No. You're welcome to ask the question in the Jenkins user mailing list or the Jenkins chat channels.

          Show
          markewaite Mark Waite added a comment - No. You're welcome to ask the question in the Jenkins user mailing list or the Jenkins chat channels.
          Hide
          lengyi Yi Leng added a comment -

          Thanks, good night

          Show
          lengyi Yi Leng added a comment - Thanks, good night

            People

            • Assignee:
              Unassigned
              Reporter:
              lengyi Yi Leng
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: