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

On Mon, Jul 6, 2015 at 11:41 AM James Richard <[email protected]>
wrote:

> 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 
> <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
>  Failed to fetch from http://.../repo.git
>       at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFrom&entity=method>
>       at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChanges&entity=method>
>       at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method>
>       at hudson.scm.SCM.checkout(SCM.java:488) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.scm.SCM.checkout&entity=method>
>       at hudson.model.AbstractProject.checkout(AbstractProject.java:1257) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkout&entity=method>
>       at 
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout&entity=method>
>       at 
> jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 
> <http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkout&entity=method>
>       at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method>
>       at hudson.model.Run.execute(Run.java:1745) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
>       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method>
>       at hudson.model.ResourceController.execute(ResourceController.java:89) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
>       at hudson.model.Executor.run(Executor.java:240) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
> Caused by: hudson.plugins.git.GitException 
> <http://stacktrace.jenkins-ci.org/search?query=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 
> <http://stacktrace.jenkins-ci.org/search?query=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?
>
>  --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/d57b5ed6-fab7-4ac6-9095-a36b69348a6d%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/d57b5ed6-fab7-4ac6-9095-a36b69348a6d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHOffYA9PJKfPzwh0EdsrAy%2B%2BZAcSHiFQMHed-%3DoRUR2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to