-
Bug
-
Resolution: Won't Fix
-
Blocker
-
Jenkins: 2.27
Plugin: 1.4 and 1.5
When trying to re-scan our GitHub Org, and we have set the "Build origin branches also filed as PRs" or really any of the "origin PR" settings, I see the following exception:
Nov 01, 2016 3:02:06 AM SEVERE hudson.model.Executor finish1 Executor threw an exception java.lang.Error: java.io.FileNotFoundException: {"message":"Server Error","documentation_url":"https://developer.github.com/v3"} at org.kohsuke.github.Requester$PagingIterator.fetch(Requester.java:433) at org.kohsuke.github.Requester$PagingIterator.hasNext(Requester.java:400) at org.kohsuke.github.PagedIterator.fetch(PagedIterator.java:44) at org.kohsuke.github.PagedIterator.hasNext(PagedIterator.java:32) at org.kohsuke.github.PagedIterable.asList(PagedIterable.java:42) at org.kohsuke.github.GHRepository.getPullRequests(GHRepository.java:648) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.doRetrieve(GitHubSCMSource.java:381) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:365) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:148) at jenkins.scm.api.SCMSource.retrieve(SCMSource.java:232) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:177) at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria$1.call(MultiBranchProjectFactory.java:157) at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria$1.call(MultiBranchProjectFactory.java:154) at jenkins.branch.OrganizationFolder.withSCMSourceCriteria(OrganizationFolder.java:255) at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:154) at jenkins.branch.OrganizationFolder$1$1.complete(OrganizationFolder.java:165) at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.add(GitHubSCMNavigator.java:323) at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:276) at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:125) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:401) Caused by: java.io.FileNotFoundException: {"message":"Server Error","documentation_url":"https://developer.github.com/v3"} at org.kohsuke.github.Requester.handleApiError(Requester.java:592) at org.kohsuke.github.Requester$PagingIterator.fetch(Requester.java:429) ... 22 more Caused by: java.io.FileNotFoundException: https://api.github.com/repos/terradatum/node-spritesheet/pulls?state=open at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:243) at com.squareup.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210) at com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:25) at org.kohsuke.github.Requester.parse(Requester.java:524) at org.kohsuke.github.Requester.access$200(Requester.java:68) at org.kohsuke.github.Requester$PagingIterator.fetch(Requester.java:424) ... 22 more
And when I try the URL seen in the exception: https://api.github.com/repos/terradatum/node-spritesheet/pulls?state=open
I see the following:
{ "message": "Server Error", "documentation_url": "https://developer.github.com/v3" }
The symptom on the UI is the "Failure: NOT_BUILT" status.
Yes the automation user connecting to our GitHub org is an admin in the org. No, this is not the typical case where the plugin is failing to create, or delete, or even see the hook - this is about a failed API call to GitHub when the plugin is looking for open PRs.
Maybe a regression introduced during the JENKINS-37253 fix?