Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot re-run failed builds #2738

Closed
basil opened this issue Jan 14, 2022 · 10 comments
Closed

Cannot re-run failed builds #2738

basil opened this issue Jan 14, 2022 · 10 comments
Labels

Comments

@basil
Copy link
Collaborator

basil commented Jan 14, 2022

Service

ci.jenkins.io

Summary

After clicking the "Re-Run" button for a failed Jenkins core PR in the GitHub UI, the GitHub UI reports "You have successfully requested Jenkins be rerun", but a re-run of the Jenkins job is not triggered on ci.jenkins.io.

Reproduction steps

Steps to reproduce

  1. Go to Detach JavaMail jenkinsci/jenkins#6165, [JENKINS-67496] Drag & drop is messed up, drag placeholders always have tiny size jenkinsci/jenkins#6184, or Merge back BuildAuthorizationTokenSEC2558Test jenkinsci/jenkins#6185.
  2. Click on the Checks tab.
  3. Click the check labeled "Jenkins". Observe that it has a red X and a "Re-run" button.
  4. Click the "Re-run" button. Observe the message: "You have successfully requested Jenkins be rerun."
  5. Go to the corresponding Jenkins job:

Expected results

The Jenkins job should be re-run.

Actual results

No Jenkins job re-run is taking place, despite the message "You have successfully requested Jenkins be rerun" being printed earlier in GitHub.

@basil basil added the triage Incoming issues that need review label Jan 14, 2022
@dduportal dduportal added bug Something isn't working ci.jenkins.io site:ci.jenkins.io and removed triage Incoming issues that need review labels Jan 15, 2022
@dduportal
Copy link
Contributor

dduportal commented Jan 15, 2022

Hello @basil , I don't have any "Re-Run" button on the three examples.
I assume that the button appears when you have the role "maintainer" or at least "writer" on the repository (which I'm not)?

cc @jglick @MarkEWaite @jtnord

In order to diagnose, I'll need help to understand how GitHub behaves when someone clicks on the "Re-Run" button: is it expected to send a webhooks to Jenkins or send a request directly to the pipeline job?

One good start to diagnose if it sends a webhooks, would be to check the Multi Branch events history: https://ci.jenkins.io/job/Core/job/jenkins/indexing/events

@timja
Copy link
Member

timja commented Jan 15, 2022

System log has this in it:

Likely related to jenkinsci/github-checks-plugin#226

Subscriber io.jenkins.plugins.checks.github.CheckRunGHEventSubscriber failed to process SCMEvent{type=UPDATED, timestamp=Sat Jan 15 09:05:47 UTC 2022, payload={"action":"rerequested","check_run":{"id":4813251404,"name":"Jenkins","node_id":"CR_kwDOABDW988AAAABHuRjTA","head_sha":"276b1a7d7da471fe6004b680f3f3bf8c43eaf7d0","external_id":"Core/jenkins/PR-6184","url":"https://api.github.com/repos/jenkinsci/jenkins/check-runs/4813251404","html_url":"https://github.com/jenkinsci/jenkins/runs/4813251404","details_url":"https://ci.jenkins.io/job/Core/job/jenkins/job/PR-6184/1/display/redirect","status":"completed","conclusion":"failure","started_at":"2022-01-14T05:54:31Z","completed_at":"2022-01-14T09:46:28Z","output":{"title":"Unstable","summary":"","text":"  * Linux-jdk8 *(18 ms)*\n    * Checkout *(46 sec)*\n    * Linux Build / Test *(1 hr 26 min)*\n    * Linux Publishing *(43 sec)*\n  * Linux-jdk11 *(20 ms)*\n    * Checkout *(45 sec)*\n    * Linux Build / Test *(1 hr 26 min)*\n    * Linux Publishing *(1.9 sec)*\n  * Windows-jdk11 *(20 ms)*\n    * Checkout *(2 min 10 sec)*\n    * Windows Build / Test *(3 hr 48 min)*\n    * Windows Publishing *(7.2 sec)*\n  * ath *(9 min 54 sec)*\n    * Getting ATH sources and Jenkins war *(14 sec)*\n    * Running ATH *(5 min 0 sec)*\n      * ATH categories-firefox-jdk11 *(4 min 33 sec)*\n","annotations_count":0,"annotations_url":"https://api.github.com/repos/jenkinsci/jenkins/check-runs/4813251404/annotations"},"check_suite":{"id":4934338101,"node_id":"CS_kwDOABDW988AAAABJhwGNQ","head_branch":null,"head_sha":"276b1a7d7da471fe6004b680f3f3bf8c43eaf7d0","status":"queued","conclusion":null,"url":"https://api.github.com/repos/jenkinsci/jenkins/check-suites/4934338101","before":null,"after":null,"pull_requests":[],"app":{"id":74951,"slug":"ci-jenkins-io","node_id":"MDM6QXBwNzQ5NTE=","owner":{"login":"jenkinsci","id":107424,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNzQyNA==","avatar_url":"https://avatars.githubusercontent.com/u/107424?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"name":"ci.jenkins.io","description":"This app connects [ci.jenkins.io](https://ci.jenkins.io/), the Jenkins project's CI instance, with GitHub. It is used in Multi-Branch Pipeline GitHub org folders, including plugins, Jenkins core repositories, infrastructure, etc . You can find documentation [here](https://github.com/jenkins-infra/documentation/blob/master/github-apps.adoc#cijenkinsio).\r\n\r\nIt is **NOT** possible to use this app to connect your own Jenkins instances, but you can register your own app. See [this blogpost](https://www.jenkins.io/blog/2020/04/16/github-app-authentication/) for the guidelines.\r\n ","external_url":"https://ci.jenkins.io/","html_url":"https://github.com/apps/ci-jenkins-io","created_at":"2020-07-30T07:34:54Z","updated_at":"2020-08-03T19:25:32Z","permissions":{"checks":"write","contents":"read","deployments":"write","members":"read","metadata":"read","pull_requests":"write","statuses":"write"},"events":["pull_request","push","repository"]},"created_at":"2022-01-14T05:54:20Z","updated_at":"2022-01-15T09:05:47Z"},"app":{"id":74951,"slug":"ci-jenkins-io","node_id":"MDM6QXBwNzQ5NTE=","owner":{"login":"jenkinsci","id":107424,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNzQyNA==","avatar_url":"https://avatars.githubusercontent.com/u/107424?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"name":"ci.jenkins.io","description":"This app connects [ci.jenkins.io](https://ci.jenkins.io/), the Jenkins project's CI instance, with GitHub. It is used in Multi-Branch Pipeline GitHub org folders, including plugins, Jenkins core repositories, infrastructure, etc . You can find documentation [here](https://github.com/jenkins-infra/documentation/blob/master/github-apps.adoc#cijenkinsio).\r\n\r\nIt is **NOT** possible to use this app to connect your own Jenkins instances, but you can register your own app. See [this blogpost](https://www.jenkins.io/blog/2020/04/16/github-app-authentication/) for the guidelines.\r\n ","external_url":"https://ci.jenkins.io/","html_url":"https://github.com/apps/ci-jenkins-io","created_at":"2020-07-30T07:34:54Z","updated_at":"2020-08-03T19:25:32Z","permissions":{"checks":"write","contents":"read","deployments":"write","members":"read","metadata":"read","pull_requests":"write","statuses":"write"},"events":["pull_request","push","repository"]},"pull_requests":[]},"repository":{"id":1103607,"node_id":"MDEwOlJlcG9zaXRvcnkxMTAzNjA3","name":"jenkins","full_name":"jenkinsci/jenkins","private":false,"owner":{"login":"jenkinsci","id":107424,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNzQyNA==","avatar_url":"https://avatars.githubusercontent.com/u/107424?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/jenkinsci/jenkins","description":"Jenkins automation server","fork":false,"url":"https://api.github.com/repos/jenkinsci/jenkins","forks_url":"https://api.github.com/repos/jenkinsci/jenkins/forks","keys_url":"https://api.github.com/repos/jenkinsci/jenkins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/jenkins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/jenkins/teams","hooks_url":"https://api.github.com/repos/jenkinsci/jenkins/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/jenkins/events","assignees_url":"https://api.github.com/repos/jenkinsci/jenkins/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/jenkins/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/jenkins/tags","blobs_url":"https://api.github.com/repos/jenkinsci/jenkins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/jenkins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/jenkins/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/jenkins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/jenkins/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/jenkins/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/jenkins/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/jenkins/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/jenkins/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/jenkins/subscription","commits_url":"https://api.github.com/repos/jenkinsci/jenkins/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/jenkins/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/jenkins/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/jenkins/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/jenkins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/jenkins/merges","archive_url":"https://api.github.com/repos/jenkinsci/jenkins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/jenkins/downloads","issues_url":"https://api.github.com/repos/jenkinsci/jenkins/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/jenkins/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/jenkins/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/jenkins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/jenkins/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/jenkins/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/jenkins/deployments","created_at":"2010-11-22T21:21:23Z","updated_at":"2022-01-14T17:49:51Z","pushed_at":"2022-01-14T08:45:13Z","git_url":"git://github.com/jenkinsci/jenkins.git","ssh_url":"[email protected]:jenkinsci/jenkins.git","clone_url":"https://github.com/jenkinsci/jenkins.git","svn_url":"https://github.com/jenkinsci/jenkins","homepage":"https://www.jenkins.io","size":136830,"stargazers_count":18319,"watchers_count":18319,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":7186,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":75,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"allow_forking":true,"is_template":false,"topics":["cicd","continuous-delivery","continuous-deployment","continuous-integration","devops","groovy","hacktoberfest","java","jenkins","pipelines-as-code"],"visibility":"public","forks":7186,"open_issues":75,"watchers":18319,"default_branch":"master"},"organization":{"login":"jenkinsci","id":107424,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNzQyNA==","url":"https://api.github.com/orgs/jenkinsci","repos_url":"https://api.github.com/orgs/jenkinsci/repos","events_url":"https://api.github.com/orgs/jenkinsci/events","hooks_url":"https://api.github.com/orgs/jenkinsci/hooks","issues_url":"https://api.github.com/orgs/jenkinsci/issues","members_url":"https://api.github.com/orgs/jenkinsci/members{/member}","public_members_url":"https://api.github.com/orgs/jenkinsci/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/107424?v=4","description":"Jenkins is an open source automation server with an unparalleled plugin ecosystem to support practically every tool as part of your delivery pipelines"},"sender":{"login":"timja","id":21194782,"node_id":"MDQ6VXNlcjIxMTk0Nzgy","avatar_url":"https://avatars.githubusercontent.com/u/21194782?v=4","gravatar_id":"","url":"https://api.github.com/users/timja","html_url":"https://github.com/timja","followers_url":"https://api.github.com/users/timja/followers","following_url":"https://api.github.com/users/timja/following{/other_user}","gists_url":"https://api.github.com/users/timja/gists{/gist_id}","starred_url":"https://api.github.com/users/timja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timja/subscriptions","organizations_url":"https://api.github.com/users/timja/orgs","repos_url":"https://api.github.com/users/timja/repos","events_url":"https://api.github.com/users/timja/events{/privacy}","received_events_url":"https://api.github.com/users/timja/received_events","type":"User","site_admin":false},"installation":{"id":10929317,"node_id":"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTA5MjkzMTc="}}, origin=140.82.115.102 ⇒ https://ci.jenkins.io/github-webhook/} hook, skipping...
org.json.JSONException: JSONObject["head_branch"] not a string.
	at org.json.JSONObject.getString(JSONObject.java:855)
	at io.jenkins.plugins.checks.github.CheckRunGHEventSubscriber.onEvent(CheckRunGHEventSubscriber.java:84)
Caused: java.lang.IllegalStateException: Could not parse check run event: {"action":"rerequested","check_run":{"id":4813251404,"name":"Jenkins","node_id":"CR_kwDOABDW988AAAABHuRjTA","head_sha":"276b1a7d7da471fe6004b680f3f3bf8c43eaf7d0","external_id":"Core/jenkins/PR-6184","url":"https://api.github.com/repos/jenkinsci/jenkins/check-runs/4813251404","html_url":"https://github.com/jenkinsci/jenkins/runs/4813251404","details_url":"https://ci.jenkins.io/job/Core/job/jenkins/job/PR-6184/1/display/redirect","status":"completed","conclusion":"failure","started_at":"2022-01-14T05:54:31Z","completed_at":"2022-01-14T09:46:28Z","output":{"title":"Unstable","summary":"","text":"  * Linux-jdk8 *(18 ms)*\n    * Checkout *(46 sec)*\n    * Linux Build / Test *(1 hr 26 min)*\n    * Linux Publishing *(43 sec)*\n  * Linux-jdk11 *(20 ms)*\n    * Checkout *(45 sec)*\n    * Linux Build / Test *(1 hr 26 min)*\n    * Linux Publishing *(1.9 sec)*\n  * Windows-jdk11 *(20 ms)*\n    * Checkout *(2 min 10 sec)*\n    * Windows Build / Test *(3 hr 48 min)*\n    * Windows Publishing *(7.2 sec)*\n  * ath *(9 min 54 sec)*\n    * Getting ATH sources and Jenkins war *(14 sec)*\n    * Running ATH *(5 min 0 sec)*\n      * ATH categories-firefox-jdk11 *(4 min 33 sec)*\n","annotations_count":0,"annotations_url":"https://api.github.com/repos/jenkinsci/jenkins/check-runs/4813251404/annotations"},"check_suite":{"id":4934338101,"node_id":"CS_kwDOABDW988AAAABJhwGNQ","head_branch":null,"head_sha":"276b1a7d7da471fe6004b680f3f3bf8c43eaf7d0","status":"queued","conclusion":null,"url":"https://api.github.com/repos/jenkinsci/jenkins/check-suites/4934338101","before":null,"after":null,"pull_requests":[],"app":{"id":74951,"slug":"ci-jenkins-io","node_id":"MDM6QXBwNzQ5NTE=","owner":{"login":"jenkinsci","id":107424,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNzQyNA==","avatar_url":"https://avatars.githubusercontent.com/u/107424?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"name":"ci.jenkins.io","description":"This app connects [ci.jenkins.io](https://ci.jenkins.io/), the Jenkins project's CI instance, with GitHub. It is used in Multi-Branch Pipeline GitHub org folders, including plugins, Jenkins core repositories, infrastructure, etc . You can find documentation [here](https://github.com/jenkins-infra/documentation/blob/master/github-apps.adoc#cijenkinsio).\r\n\r\nIt is **NOT** possible to use this app to connect your own Jenkins instances, but you can register your own app. See [this blogpost](https://www.jenkins.io/blog/2020/04/16/github-app-authentication/) for the guidelines.\r\n ","external_url":"https://ci.jenkins.io/","html_url":"https://github.com/apps/ci-jenkins-io","created_at":"2020-07-30T07:34:54Z","updated_at":"2020-08-03T19:25:32Z","permissions":{"checks":"write","contents":"read","deployments":"write","members":"read","metadata":"read","pull_requests":"write","statuses":"write"},"events":["pull_request","push","repository"]},"created_at":"2022-01-14T05:54:20Z","updated_at":"2022-01-15T09:05:47Z"},"app":{"id":74951,"slug":"ci-jenkins-io","node_id":"MDM6QXBwNzQ5NTE=","owner":{"login":"jenkinsci","id":107424,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNzQyNA==","avatar_url":"https://avatars.githubusercontent.com/u/107424?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"name":"ci.jenkins.io","description":"This app connects [ci.jenkins.io](https://ci.jenkins.io/), the Jenkins project's CI instance, with GitHub. It is used in Multi-Branch Pipeline GitHub org folders, including plugins, Jenkins core repositories, infrastructure, etc . You can find documentation [here](https://github.com/jenkins-infra/documentation/blob/master/github-apps.adoc#cijenkinsio).\r\n\r\nIt is **NOT** possible to use this app to connect your own Jenkins instances, but you can register your own app. See [this blogpost](https://www.jenkins.io/blog/2020/04/16/github-app-authentication/) for the guidelines.\r\n ","external_url":"https://ci.jenkins.io/","html_url":"https://github.com/apps/ci-jenkins-io","created_at":"2020-07-30T07:34:54Z","updated_at":"2020-08-03T19:25:32Z","permissions":{"checks":"write","contents":"read","deployments":"write","members":"read","metadata":"read","pull_requests":"write","statuses":"write"},"events":["pull_request","push","repository"]},"pull_requests":[]},"repository":{"id":1103607,"node_id":"MDEwOlJlcG9zaXRvcnkxMTAzNjA3","name":"jenkins","full_name":"jenkinsci/jenkins","private":false,"owner":{"login":"jenkinsci","id":107424,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNzQyNA==","avatar_url":"https://avatars.githubusercontent.com/u/107424?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/jenkinsci/jenkins","description":"Jenkins automation server","fork":false,"url":"https://api.github.com/repos/jenkinsci/jenkins","forks_url":"https://api.github.com/repos/jenkinsci/jenkins/forks","keys_url":"https://api.github.com/repos/jenkinsci/jenkins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/jenkins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/jenkins/teams","hooks_url":"https://api.github.com/repos/jenkinsci/jenkins/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/jenkins/events","assignees_url":"https://api.github.com/repos/jenkinsci/jenkins/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/jenkins/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/jenkins/tags","blobs_url":"https://api.github.com/repos/jenkinsci/jenkins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/jenkins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/jenkins/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/jenkins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/jenkins/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/jenkins/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/jenkins/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/jenkins/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/jenkins/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/jenkins/subscription","commits_url":"https://api.github.com/repos/jenkinsci/jenkins/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/jenkins/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/jenkins/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/jenkins/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/jenkins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/jenkins/merges","archive_url":"https://api.github.com/repos/jenkinsci/jenkins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/jenkins/downloads","issues_url":"https://api.github.com/repos/jenkinsci/jenkins/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/jenkins/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/jenkins/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/jenkins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/jenkins/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/jenkins/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/jenkins/deployments","created_at":"2010-11-22T21:21:23Z","updated_at":"2022-01-14T17:49:51Z","pushed_at":"2022-01-14T08:45:13Z","git_url":"git://github.com/jenkinsci/jenkins.git","ssh_url":"[email protected]:jenkinsci/jenkins.git","clone_url":"https://github.com/jenkinsci/jenkins.git","svn_url":"https://github.com/jenkinsci/jenkins","homepage":"https://www.jenkins.io","size":136830,"stargazers_count":18319,"watchers_count":18319,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":7186,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":75,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"allow_forking":true,"is_template":false,"topics":["cicd","continuous-delivery","continuous-deployment","continuous-integration","devops","groovy","hacktoberfest","java","jenkins","pipelines-as-code"],"visibility":"public","forks":7186,"open_issues":75,"watchers":18319,"default_branch":"master"},"organization":{"login":"jenkinsci","id":107424,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNzQyNA==","url":"https://api.github.com/orgs/jenkinsci","repos_url":"https://api.github.com/orgs/jenkinsci/repos","events_url":"https://api.github.com/orgs/jenkinsci/events","hooks_url":"https://api.github.com/orgs/jenkinsci/hooks","issues_url":"https://api.github.com/orgs/jenkinsci/issues","members_url":"https://api.github.com/orgs/jenkinsci/members{/member}","public_members_url":"https://api.github.com/orgs/jenkinsci/public_members{/member}","avatar_url":"https://avatars.githubusercontent.com/u/107424?v=4","description":"Jenkins is an open source automation server with an unparalleled plugin ecosystem to support practically every tool as part of your delivery pipelines"},"sender":{"login":"timja","id":21194782,"node_id":"MDQ6VXNlcjIxMTk0Nzgy","avatar_url":"https://avatars.githubusercontent.com/u/21194782?v=4","gravatar_id":"","url":"https://api.github.com/users/timja","html_url":"https://github.com/timja","followers_url":"https://api.github.com/users/timja/followers","following_url":"https://api.github.com/users/timja/following{/other_user}","gists_url":"https://api.github.com/users/timja/gists{/gist_id}","starred_url":"https://api.github.com/users/timja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timja/subscriptions","organizations_url":"https://api.github.com/users/timja/orgs","repos_url":"https://api.github.com/users/timja/repos","events_url":"https://api.github.com/users/timja/events{/privacy}","received_events_url":"https://api.github.com/users/timja/received_events","type":"User","site_admin":false},"installation":{"id":10929317,"node_id":"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTA5MjkzMTc="}}
	at io.jenkins.plugins.checks.github.CheckRunGHEventSubscriber.onEvent(CheckRunGHEventSubscriber.java:98)
	at org.jenkinsci.plugins.github.extension.GHEventsSubscriber$4.applyNullSafe(GHEventsSubscriber.java:240)
	at org.jenkinsci.plugins.github.extension.GHEventsSubscriber$4.applyNullSafe(GHEventsSubscriber.java:236)
	at org.jenkinsci.plugins.github.util.misc.NullSafeFunction.apply(NullSafeFunction.java:18)
	at com.google.common.collect.Iterators$8.next(Iterators.java:812)
	at com.google.common.collect.Lists.newArrayList(Lists.java:139)
	at com.google.common.collect.Lists.newArrayList(Lists.java:119)
	at org.jenkinsci.plugins.github.util.FluentIterableWrapper.toList(FluentIterableWrapper.java:147)
	at com.cloudbees.jenkins.GitHubWebHook.doIndex(GitHubWebHook.java:124)
	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:393)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:405)
	at org.jenkinsci.plugins.github.webhook.RequirePostWithGHHookPayload$Processor.invoke(RequirePostWithGHHookPayload.java:80)
	at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:208)
	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:141)
	at org.kohsuke.stapler.IndexDispatcher.dispatch(IndexDispatcher.java:27)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
	at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:457)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:694)
	at org.kohsuke.stapler.Stapler.service(Stapler.java:240)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
	at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1626)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:156)
	at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:248)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:153)
	at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:153)
	at jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:80)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:153)
	at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:60)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:153)
	at com.cloudbees.jenkins.support.slowrequest.SlowRequestFilter.doFilter(SlowRequestFilter.java:37)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:153)
	at io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:153)
	at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:153)
	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:159)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at com.cloudbees.jenkins.GitHubWebHookCrumbExclusion.process(GitHubWebHookCrumbExclusion.java:29)
	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:127)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:92)
	at jenkins.security.AcegiSecurityExceptionFilter.doFilter(AcegiSecurityExceptionFilter.java:52)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:53)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:121)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:115)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:105)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
	at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:133)
	at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:92)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:218)
	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:212)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
	at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:97)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:62)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:97)
	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:109)
	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:51)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:85)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:39)
	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
	at org.eclipse.jetty.server.Server.handle(Server.java:516)
	at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
	at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:386)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
	at java.base/java.lang.Thread.run(Thread.java:829)

@timja
Copy link
Member

timja commented Jan 15, 2022

jenkinsci/github-checks-plugin#237

@jglick
Copy link

jglick commented Jan 15, 2022

Yes you need to have write access on the repo.

@timja
Copy link
Member

timja commented Jan 15, 2022

Next restart of ci.jenkins.io should fix it:

image

Fair few builds running atm

@dduportal
Copy link
Contributor

Ping @basil does the fix works for you now that ci.jenkins.io has been updated and restarted?

@timja
Copy link
Member

timja commented Jan 17, 2022

Ping @basil does the fix works for you now that ci.jenkins.io has been updated and restarted?

The unit tests weren't quite right -.-, fixing atm

@timja
Copy link
Member

timja commented Jan 17, 2022

jenkinsci/github-checks-plugin#238

@timja
Copy link
Member

timja commented Jan 18, 2022

Works now

@timja timja closed this as completed Jan 18, 2022
@basil
Copy link
Collaborator Author

basil commented Jan 18, 2022

Works now

Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants