janinko / ghprb

github pull requests builder plugin for Jenkins
https://wiki.jenkins-ci.org/display/JENKINS/GitHub+pull+request+builder+plugin
MIT License
370 stars 20 forks source link

Timeouts for pulling PRs from Enterprise Github #473

Open dougtweedy opened 7 years ago

dougtweedy commented 7 years ago

We are seeing an issue with timeouts on multiple servers within our environment. It happens consistently throughout the day with an estimated failure rate of about 60%. Jenkins receives the hook correctly every time but when the PR builder attempts to pull the PR, it times out. When curling the endpoints, I don't see the same timeouts so I believe this to be an issue within the plugin itself. Below are details

Jenkins Version: 1.647 (also seen on 2.46.3) Pull Request Plugin: 1.34 (also seen on 1.35 and 1.39)

INFO: timed out accessing https://xxxxxxxxxxx/api/v3/repos/xxxxxx/xxxxxxxxx/pulls/443; will try 2 more time(s) java.net.SocketTimeoutException: Read timed out ... INFO: timed out accessing https://xxxxxxxxxxx/api/v3/repos/xxxxxx/xxxxxxxxx/pulls/443; will try 1 more time(s) java.net.SocketTimeoutException: Read timed out ... Exception in thread "Thread-83" java.lang.Error: org.kohsuke.github.HttpException: Server returned HTTP response code: -1, message: 'null' for URL: https://xxxxxxxxxxx/api/v3/repos/xxxxxx/xxxxxxxxx/pulls/443/commits

Is there a place to set a timeout value?