Issue Type: Bug Bug
Assignee: OHTAKE Tomohiro
Components: git-client
Created: 05/Aug/14 9:28 AM
Description:

When Jenkins is behind an authentication proxy, git-client cannot checkout git repository.

Cloning the remote Git repository
Cloning repository https://example.com/example.git
 > git init /var/lib/jenkins/jobs/test/workspace # timeout=10
Fetching upstream changes from https://example.com/example.git
 > git --version # timeout=10
using .gitcredentials to set credentials
 > git config --local credential.helper store --file=/tmp/git3935065820026506239.credentials # timeout=10
Setting http proxy: http://example.local:8080/
 > git fetch --tags --progress https://example.com/example.git +refs/heads/*:refs/remotes/origin/*
 > git config --local --remove-section credential # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --progress https://example.com/example.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: fatal: unable to access 'https://example.com/example.git': Received HTTP code 407 from proxy after CONNECT

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:422)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:848)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:881)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1254)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)
	at hudson.model.Run.execute(Run.java:1732)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:234)
ERROR: null
Finished: FAILURE
Environment: Jenkins 1.574
Git client plugin 1.10.1
Git plugin 2.2.4
Ubuntu 13.10 x64
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.13.10.1)
Project: Jenkins
Priority: Major Major
Reporter: OHTAKE Tomohiro
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to