GIT client plugin proxy authentication

297 views
Skip to first unread message

James Richard

unread,
Jul 6, 2015, 1:41:09 PM7/6/15
to jenkins...@googlegroups.com
Jenkins : 1.580.2
Git plugin : 2.3.5
Git client plugin : 1.17.1

 > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > /usr/bin/git config remote.origin.url http://.../repo.git # timeout=10
Fetching upstream changes from http://.../repo.git
> /usr/bin/git --version # timeout=10 Setting http proxy: qaproxy:3128 > /usr/bin/git fetch --tags --progress http://.../repo.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from http://.../repo.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016) at hudson.scm.SCM.checkout(SCM.java:488) at hudson.model.AbstractProject.checkout(AbstractProject.java:1257) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) at hudson.model.Run.execute(Run.java:1745) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --progress http://.../repo.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: stderr: error: The requested URL returned error: 407 while accessing http://.../repo.git/info/refs
fatal: HTTP request failed at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1591) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1379) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:324) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:733) ... 11 more ERROR: Error fetching remote repo 'origin' Finished: FAILURE

In http://jenkinsserver:8080/pluginManager/advanced I have defined the Host, Port, Username, and Password. I found this ticket https://issues.jenkins-ci.org/browse/JENKINS-24112. It seems this problem has been re-introduced. Has anyone else had this issue?

Mark Waite

unread,
Jul 6, 2015, 2:43:34 PM7/6/15
to jenkins...@googlegroups.com
I'm not aware of anyone else reporting an issue using git through an authenticating http proxy.  The code is still in the git client plugin to handle that case. https://github.com/jenkinsci/git-client-plugin/blob/master/src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java#L1324 

I don't have an authenticating http proxy available, so I don't test that case.

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d57b5ed6-fab7-4ac6-9095-a36b69348a6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

James Richard

unread,
Jul 9, 2015, 11:19:30 AM7/9/15
to jenkins...@googlegroups.com
I see that the code is still in the git client but as you can see from the stack trace I provided it no longer seems to work correctly.
Reply all
Reply to author
Forward
0 new messages