{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/github-plugin/issues/111","repository_url":"https://api.github.com/repos/jenkinsci/github-plugin","labels_url":"https://api.github.com/repos/jenkinsci/github-plugin/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/github-plugin/issues/111/comments","events_url":"https://api.github.com/repos/jenkinsci/github-plugin/issues/111/events","html_url":"https://github.com/jenkinsci/github-plugin/pull/111","id":139126120,"number":111,"title":"Don't let the build fail if the commit doesn't exist in upstream","user":{"login":"kohsuke","id":50003,"avatar_url":"https://avatars.githubusercontent.com/u/50003?v=3","gravatar_id":"","url":"https://api.github.com/users/kohsuke","html_url":"https://github.com/kohsuke","followers_url":"https://api.github.com/users/kohsuke/followers","following_url":"https://api.github.com/users/kohsuke/following{/other_user}","gists_url":"https://api.github.com/users/kohsuke/gists{/gist_id}","starred_url":"https://api.github.com/users/kohsuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohsuke/subscriptions","organizations_url":"https://api.github.com/users/kohsuke/orgs","repos_url":"https://api.github.com/users/kohsuke/repos","events_url":"https://api.github.com/users/kohsuke/events{/privacy}","received_events_url":"https://api.github.com/users/kohsuke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-07T23:28:50Z","updated_at":"2016-03-08T01:00:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/github-plugin/pulls/111","html_url":"https://github.com/jenkinsci/github-plugin/pull/111","diff_url":"https://github.com/jenkinsci/github-plugin/pull/111.diff","patch_url":"https://github.com/jenkinsci/github-plugin/pull/111.patch"},"body":"PR builds and other merge activities can create a new tip of the repository that's not in the github repository. This plugin causes the build to fail in such a case today, which is undesirable. We'd rather just have the build to succeed without a commit status.\r\n\r\nThis is the stack trace you get when that happens:\r\n\r\n````\r\nERROR: Step ‘Set build status on GitHub commit’ aborted due to exception: \r\njava.io.FileNotFoundException: {\"message\":\"No commit found for SHA: bb077596591672c8348ace0f8ddb2a13df2e0892\",\"documentation_url\":\"https://developer.github.com/v3/repos/statuses/\"}\r\n\tat org.kohsuke.github.Requester.handleApiError(Requester.java:527)\r\n\tat org.kohsuke.github.Requester._to(Requester.java:257)\r\n\tat org.kohsuke.github.Requester.to(Requester.java:203)\r\n\tat org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:854)\r\n\tat com.cloudbees.jenkins.GitHubCommitNotifier.updateCommitStatus(GitHubCommitNotifier.java:142)\r\n\tat com.cloudbees.jenkins.GitHubCommitNotifier.perform(GitHubCommitNotifier.java:111)\r\n\tat hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:75)\r\n\tat hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)\r\n\tat hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:795)\r\n\tat hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)\r\n\tat hudson.model.Build$BuildExecution.post2(Build.java:185)\r\n\tat hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:681)\r\n\tat hudson.model.Run.execute(Run.java:1766)\r\n\tat hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)\r\n\tat hudson.model.ResourceController.execute(ResourceController.java:98)\r\n\tat hudson.model.Executor.run(Executor.java:408)\r\nCaused by: java.io.FileNotFoundException: https://api.github.com/repos/cloudbees/blueocean/statuses/bb077596591672c8348ace0f8ddb2a13df2e0892\r\n\tat com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:240)\r\n\tat com.squareup.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)\r\n\tat com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:25)\r\n\tat org.kohsuke.github.Requester.parse(Requester.java:483)\r\n\tat org.kohsuke.github.Requester._to(Requester.java:236)\r\n\t... 14 more\r\n````\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.svg\" height=\"40\" alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/jenkinsci/github-plugin/111)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/jenkinsci/github-plugin/issues/comments/193534000","html_url":"https://github.com/jenkinsci/github-plugin/pull/111#issuecomment-193534000","issue_url":"https://api.github.com/repos/jenkinsci/github-plugin/issues/111","id":193534000,"user":{"login":"KostyaSha","id":231611,"avatar_url":"https://avatars.githubusercontent.com/u/231611?v=3","gravatar_id":"","url":"https://api.github.com/users/KostyaSha","html_url":"https://github.com/KostyaSha","followers_url":"https://api.github.com/users/KostyaSha/followers","following_url":"https://api.github.com/users/KostyaSha/following{/other_user}","gists_url":"https://api.github.com/users/KostyaSha/gists{/gist_id}","starred_url":"https://api.github.com/users/KostyaSha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KostyaSha/subscriptions","organizations_url":"https://api.github.com/users/KostyaSha/orgs","repos_url":"https://api.github.com/users/KostyaSha/repos","events_url":"https://api.github.com/users/KostyaSha/events{/privacy}","received_events_url":"https://api.github.com/users/KostyaSha/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T01:00:18Z","updated_at":"2016-03-08T01:00:18Z","body":"What error is used when user has no permissions to repository at all?"}}