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

Git submodule updates ignore url.insteadOf settings in the global config file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-client-plugin
    • None
    • Jenkins: 1.605 on Windows
      git-client-plugin: 1.16.1

      When the git config file has url settings such as:

      [url "ssh://git@myserver.com:7999"]
      insteadOf = https://myserver.com:8443/scm

      git submodule update still attempts to clone from the https url. I'm using this to try to override the remote URL for specific submodules.

      Here's the error message:

      Cloning into 'folder/modulename'...
      fatal: Authentication failed for 'https://myserver.com:8443/scm/proj/project.git/'
      Clone of 'https://myserver.com:8443/scm/proj/project.git/' into submodule path 'folder/modulename' failed

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1591)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:86)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:893)
      at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:83)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1047)
      at hudson.scm.SCM.checkout(SCM.java:484)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1270)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531)
      at hudson.model.Run.execute(Run.java:1751)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)

            Unassigned Unassigned
            chadkillingsworth Chad Killingsworth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: