-
Bug
-
Resolution: Unresolved
-
Minor
-
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)