[JIRA] (JENKINS-60792) GH Source Branch Plugin ignores system-wide proxy settings

6 views
Skip to first unread message

sanya.rnd@gmail.com (JIRA)

unread,
Jan 16, 2020, 7:09:07 AM1/16/20
to jenkinsc...@googlegroups.com
Alexander Biryukov created an issue
 
Jenkins / Bug JENKINS-60792
GH Source Branch Plugin ignores system-wide proxy settings
Issue Type: Bug Bug
Assignee: Unassigned
Components: github-branch-source-plugin
Created: 2020-01-16 12:08
Priority: Major Major
Reporter: Alexander Biryukov

Hi, we are experiencing strange issues with the plugin. For some reason, it ignores proxy settings which are defined in:

  • /etc/environment
  • ~/.bashrc
     

  • Global settings

  • Run parameters

It leads to the following error after some time:

java.net.SocketTimeoutException: connect timed out
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:589)
	at com.squareup.okhttp.internal.Platform.connectSocket(Platform.java:120)
	at com.squareup.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:141)
	at com.squareup.okhttp.internal.io.RealConnection.connect(RealConnection.java:112)
	at com.squareup.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184)
	at com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
	at com.squareup.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
	at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
	at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:450)
	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:399)
	at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:527)
	at com.squareup.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
	at com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
	at org.kohsuke.github.Requester.parse(Requester.java:615)
Caused: org.kohsuke.github.HttpException: Server returned HTTP response code: -1, message: 'null' for URL: https://api.github.com/
	at org.kohsuke.github.Requester.parse(Requester.java:646)
	at org.kohsuke.github.Requester.parse(Requester.java:644)
	at org.kohsuke.github.Requester.parse(Requester.java:644)
	at org.kohsuke.github.Requester.parse(Requester.java:607)
	at org.kohsuke.github.Requester._to(Requester.java:285)
	at org.kohsuke.github.Requester.to(Requester.java:247)
	at org.kohsuke.github.GitHub.checkApiUrlValidity(GitHub.java:744)
	at org.jenkinsci.plugins.github_branch_source.Connector.checkApiUrlValidity(Connector.java:326)
	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.checkApiUrlValidity(GitHubSCMSource.java:1518)
Caused: java.io.IOException: It seems https://api.github.com is unreachable
	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.checkApiUrlValidity(GitHubSCMSource.java:1521)
	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:1571)
	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:582)
	at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:98)
	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:299)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE 

It looks like that plugin is using proxy, but then suddenly stops.

The only solution we have right now is to restart the node.

Jenkins is running in AWS, ver. 2.190.2

Plugin version: 2.5.8

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

sanya.rnd@gmail.com (JIRA)

unread,
Jan 16, 2020, 7:13:06 AM1/16/20
to jenkinsc...@googlegroups.com
Alexander Biryukov updated an issue
Change By: Alexander Biryukov
Hi, we are experiencing strange issues with the plugin. For some reason, it ignores proxy settings which are defined in:
* /etc/environment
* ~/.bashrc
 
*
Global settings
*

Run parameters

It leads to the following error after some time:
{code:java}
Finished: FAILURE {code}

It looks like that plugin is using proxy, but then suddenly stops.

The only solution we have right now is to restart the node.

Jenkins is running in AWS,[ ver. 2.190.2|https://jenkins.io/]

Plugin version: 2.5.8

bitwiseman@gmail.com (JIRA)

unread,
Feb 10, 2020, 6:51:02 PM2/10/20
to jenkinsc...@googlegroups.com
Liam Newman commented on Bug JENKINS-60792
 
Re: GH Source Branch Plugin ignores system-wide proxy settings

Please try with github-branch-source 2.6.0.

Reply all
Reply to author
Forward
0 new messages