-
Bug
-
Resolution: Fixed
-
Major
-
Windows 7 & 8 slaves
Mac slave (see comments)
Reproduced on RHEL Linux 6.5
Ubuntu 14.04
- Configure a git project that uses a remote and submodule URL of the form https://
- Ensure credentials added to Jenkins
- Add advanced submodule behaviors with no options selected
- First build (where repo is cloned) pulls the submodule correctly
- Subsequent builds fail authorization on the submodule part (possibly submodule update if this is being used)
- is duplicated by
-
JENKINS-29604 git-client CLI implementation does not propogate username
-
- Closed
-
[JENKINS-20941] Stored git credentials not used when submodule is updated
Environment |
New:
Windows 7 & 8 slaves Cannot reproduce on Mac slave |
Component/s | New: git-client [ 17423 ] |
Environment |
Original:
Windows 7 & 8 slaves Cannot reproduce on Mac slave |
New:
Windows 7 & 8 slaves Cannot reproduce on Mac slave Reproduced on RHEL Linux 6.5 |
Example failure log:
Fetching changes from the remote Git repository
Fetching upstream changes from https://github.com/xxx
Checking out Revision xxx (origin/master)
Cleaning workspace
Resetting working tree
FATAL: Command "submodule update" returned status code 1:
stdout:
stderr: remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/xxx.git/'
Unable to fetch in submodule path 'xxx'
hudson.plugins.git.GitException: Command "submodule update" returned status code 1:
stdout:
stderr: remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/xxx.git/'
Unable to fetch in submodule path 'xxx'
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:981)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:961)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:957)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:877)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.submoduleUpdate(CliGitAPIImpl.java:546)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.submoduleUpdate(CliGitAPIImpl.java:527)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:328)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at hudson.remoting.Engine$1$1.run(Engine.java:63)
at java.lang.Thread.run(Unknown Source)