I'm facing the same problem, but I do not want to upgrade to 2.0. Would appreciate other suggestions.
On Saturday, April 30, 2016 at 10:58:08 AM UTC+10, Lionel Orellana wrote: > > > Upgrading from 1.656 to 2.0 fixed it. > > The GitHub Branch Source Plugin is probably what made the difference. I > was using a Git (as opposed to GitHub) branch source before. > > On Friday, 29 April 2016 15:51:58 UTC+10, Lionel Orellana wrote: >> >> Hi >> >> I have a proxy configured in my Jenkins settings (Manage Plugins -> >> Advanced). >> >> I'm pretty sure this is what makes freestyle jobs and Pipelines set the >> proxy before connecting to github. >> >> Here's the output from a Pipeline job: >> >> > /opt/rh/devtoolset-2/root/usr/bin/git config --local credential.helper >> store --file=/tmp/git7252640829815953814.credentials # timeout=10*Setting >> http proxy: serverproxy:8080* >> >> > /opt/rh/devtoolset-2/root/usr/bin/git -c core.askpass=true fetch --tags >> --progress https://github.com/****/*****.git >> <https://github.com/afsadev/debt-agreement.git> >> +refs/heads/*:refs/remotes/origin/* >> >> >> But when I try to run the indexing job in a Multibranch pipeline it fails >> to connect to github. It seems to me it is not setting the proxy. >> >> FATAL: Failed to recompute children of Debt Agreement Service Pipeline >> >> hudson.plugins.git.GitException >> <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>: >> org.eclipse.jgit.api.errors.TransportException: >> https://github.com/*****/*****.git >> <https://github.com/afsadev/debt-agreement.git>: cannot open git-upload-pack >> at >> org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:680) >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch&entity=method> >> at >> jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:174) >> >> <http://stacktrace.jenkins-ci.org/search/?query=jenkins.plugins.git.AbstractGitSCMSource.retrieve&entity=method> >> at jenkins.scm.api.SCMSource.fetch(SCMSource.java:146) >> <http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.api.SCMSource.fetch&entity=method> >> at >> jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:296) >> >> <http://stacktrace.jenkins-ci.org/search/?query=jenkins.branch.MultiBranchProject.computeChildren&entity=method> >> at >> com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:151) >> >> <http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren&entity=method> >> at >> com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122) >> >> <http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run&entity=method> >> at hudson.model.ResourceController.execute(ResourceController.java:98) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method> >> at hudson.model.Executor.run(Executor.java:410) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method> >> Caused by: org.eclipse.jgit.api.errors.TransportException >> <http://stacktrace.jenkins-ci.org/search?query=org.eclipse.jgit.api.errors.TransportException>: >> https://github.com/******/*******.git >> <https://github.com/afsadev/debt-agreement.git>: cannot open git-upload-pack >> at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139) >> <http://stacktrace.jenkins-ci.org/search/?query=org.eclipse.jgit.api.FetchCommand.call&entity=method> >> at >> org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:678) >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch&entity=method> >> ... 7 more >> Caused by: org.eclipse.jgit.errors.TransportException >> <http://stacktrace.jenkins-ci.org/search?query=org.eclipse.jgit.errors.TransportException>: >> https://github.com/*****/******.git >> <https://github.com/afsadev/debt-agreement.git>: cannot open git-upload-pack >> at >> org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:524) >> <http://stacktrace.jenkins-ci.org/search/?query=org.eclipse.jgit.transport.TransportHttp.connect&entity=method> >> at >> org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309) >> <http://stacktrace.jenkins-ci.org/search/?query=org.eclipse.jgit.transport.TransportHttp.openFetch&entity=method> >> at >> org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136) >> <http://stacktrace.jenkins-ci.org/search/?query=org.eclipse.jgit.transport.FetchProcess.executeImp&entity=method> >> at >> org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122) >> <http://stacktrace.jenkins-ci.org/search/?query=org.eclipse.jgit.transport.FetchProcess.execute&entity=method> >> at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138) >> <http://stacktrace.jenkins-ci.org/search/?query=org.eclipse.jgit.transport.Transport.fetch&entity=method> >> at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130) >> <http://stacktrace.jenkins-ci.org/search/?query=org.eclipse.jgit.api.FetchCommand.call&entity=method> >> ... 8 more*Caused by: java.net.ConnectException >> <http://stacktrace.jenkins-ci.org/search?query=java.net.ConnectException>: >> Connection timed out github.com <http://github.com> >> * at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:175) >> <http://stacktrace.jenkins-ci.org/search/?query=org.eclipse.jgit.util.HttpSupport.response&entity=method> >> at >> org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:475) >> <http://stacktrace.jenkins-ci.org/search/?query=org.eclipse.jgit.transport.TransportHttp.connect&entity=method> >> ... 13 more >> Finished: FAILURE >> >> >> Is there a way to set the proxy or could it be something different? >> >> >> Thanks >> >> >> -- 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/98523cdd-0eba-495a-ae3a-30dc8a7ff3fd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
