Re: GIT client plugin proxy authentication

2015-07-09 Thread James Richard
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.

On Monday, July 6, 2015 at 2:43:34 PM UTC-4, Mark Waite wrote:
>
> 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  > 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 
>> :
>>  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?
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving 

Re: GIT client plugin proxy authentication

2015-07-06 Thread Mark Waite
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 
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 
> :
>  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?
>
>  --
> 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-users+unsubscr...@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
> 

GIT client plugin proxy authentication

2015-07-06 Thread James Richard
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?

-- 
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-users+unsubscr...@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.