{"action":"opened","number":24,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/pulls/24","id":153215925,"html_url":"https://github.com/jenkinsci/cloudbees-jenkins-advisor-plugin/pull/24","diff_url":"https://github.com/jenkinsci/cloudbees-jenkins-advisor-plugin/pull/24.diff","patch_url":"https://github.com/jenkinsci/cloudbees-jenkins-advisor-plugin/pull/24.patch","issue_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/issues/24","number":24,"state":"open","locked":false,"title":"[WIP] See CloudBees Jenkins Advisor reports within Jenkins","user":{"login":"kwhetstone","id":14875282,"avatar_url":"https://avatars0.githubusercontent.com/u/14875282?v=4","gravatar_id":"","url":"https://api.github.com/users/kwhetstone","html_url":"https://github.com/kwhetstone","followers_url":"https://api.github.com/users/kwhetstone/followers","following_url":"https://api.github.com/users/kwhetstone/following{/other_user}","gists_url":"https://api.github.com/users/kwhetstone/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhetstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhetstone/subscriptions","organizations_url":"https://api.github.com/users/kwhetstone/orgs","repos_url":"https://api.github.com/users/kwhetstone/repos","events_url":"https://api.github.com/users/kwhetstone/events{/privacy}","received_events_url":"https://api.github.com/users/kwhetstone/received_events","type":"User","site_admin":false},"body":"A common request is to have more information about the Advisor reports in the UI itself.   This PR sets up a webhook that can receive info from the CloudBees Jenkins Advisor service, and display it within the UI.  Right now, this will receive, store, and display the information on the UI.  It's rudimentary right now, but this partially is out there to get a feel if this is as widespread as my impression was.\r\n\r\nTo use: you need to create `CloudBees Jenkins Advisor Credential` with a valid key from insights (automation coming soon).  After that, the plugin handles everything else.  Access the list of reports from the \"Configure CloudBees Jenkins Advisor\" page.\r\n\r\nIt's pretty rough right now, and there are a few things that need to be done if this is really the direction we want to go:\r\n- [ ]  Credentials situation fully automated\r\n- [ ]  Better display of issues\r\n- [ ]  Tests (so, so many tests)\r\n- [ ]  Documentation!","created_at":"2017-11-17T05:03:39Z","updated_at":"2017-11-17T05:03:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/pulls/24/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/pulls/24/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/issues/24/comments","statuses_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/statuses/97391862fbe1b241d415bdbd36525ba7a133d4ce","head":{"label":"kwhetstone:webhook","ref":"webhook","sha":"97391862fbe1b241d415bdbd36525ba7a133d4ce","user":{"login":"kwhetstone","id":14875282,"avatar_url":"https://avatars0.githubusercontent.com/u/14875282?v=4","gravatar_id":"","url":"https://api.github.com/users/kwhetstone","html_url":"https://github.com/kwhetstone","followers_url":"https://api.github.com/users/kwhetstone/followers","following_url":"https://api.github.com/users/kwhetstone/following{/other_user}","gists_url":"https://api.github.com/users/kwhetstone/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhetstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhetstone/subscriptions","organizations_url":"https://api.github.com/users/kwhetstone/orgs","repos_url":"https://api.github.com/users/kwhetstone/repos","events_url":"https://api.github.com/users/kwhetstone/events{/privacy}","received_events_url":"https://api.github.com/users/kwhetstone/received_events","type":"User","site_admin":false},"repo":{"id":101086950,"name":"cloudbees-jenkins-advisor-plugin","full_name":"kwhetstone/cloudbees-jenkins-advisor-plugin","owner":{"login":"kwhetstone","id":14875282,"avatar_url":"https://avatars0.githubusercontent.com/u/14875282?v=4","gravatar_id":"","url":"https://api.github.com/users/kwhetstone","html_url":"https://github.com/kwhetstone","followers_url":"https://api.github.com/users/kwhetstone/followers","following_url":"https://api.github.com/users/kwhetstone/following{/other_user}","gists_url":"https://api.github.com/users/kwhetstone/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhetstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhetstone/subscriptions","organizations_url":"https://api.github.com/users/kwhetstone/orgs","repos_url":"https://api.github.com/users/kwhetstone/repos","events_url":"https://api.github.com/users/kwhetstone/events{/privacy}","received_events_url":"https://api.github.com/users/kwhetstone/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kwhetstone/cloudbees-jenkins-advisor-plugin","description":"Helps administrators diagnose issues with their Jenkins instance by periodically uploading support bundles to CloudBees Jenkins Advisor..","fork":true,"url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin","forks_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/forks","keys_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/teams","hooks_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/hooks","issue_events_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/events","assignees_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/tags","blobs_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/languages","stargazers_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/stargazers","contributors_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/contributors","subscribers_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/subscribers","subscription_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/subscription","commits_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/merges","archive_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/downloads","issues_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/labels{/name}","releases_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/kwhetstone/cloudbees-jenkins-advisor-plugin/deployments","created_at":"2017-08-22T17:00:33Z","updated_at":"2017-08-22T17:00:35Z","pushed_at":"2017-11-17T01:55:02Z","git_url":"git://github.com/kwhetstone/cloudbees-jenkins-advisor-plugin.git","ssh_url":"git@github.com:kwhetstone/cloudbees-jenkins-advisor-plugin.git","clone_url":"https://github.com/kwhetstone/cloudbees-jenkins-advisor-plugin.git","svn_url":"https://github.com/kwhetstone/cloudbees-jenkins-advisor-plugin","homepage":null,"size":171,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jenkinsci:master","ref":"master","sha":"e2d10c066fa179931b9b33527f6edc926b202240","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars0.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},"repo":{"id":100904802,"name":"cloudbees-jenkins-advisor-plugin","full_name":"jenkinsci/cloudbees-jenkins-advisor-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars0.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},"private":false,"html_url":"https://github.com/jenkinsci/cloudbees-jenkins-advisor-plugin","description":"Helps administrators diagnose issues with their Jenkins instance by periodically uploading support bundles to CloudBees Jenkins Advisor..","fork":false,"url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin","forks_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/deployments","created_at":"2017-08-21T02:35:45Z","updated_at":"2017-08-21T21:05:52Z","pushed_at":"2017-11-15T04:16:34Z","git_url":"git://github.com/jenkinsci/cloudbees-jenkins-advisor-plugin.git","ssh_url":"git@github.com:jenkinsci/cloudbees-jenkins-advisor-plugin.git","clone_url":"https://github.com/jenkinsci/cloudbees-jenkins-advisor-plugin.git","svn_url":"https://github.com/jenkinsci/cloudbees-jenkins-advisor-plugin","homepage":null,"size":130,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/pulls/24"},"html":{"href":"https://github.com/jenkinsci/cloudbees-jenkins-advisor-plugin/pull/24"},"issue":{"href":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/issues/24"},"comments":{"href":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/cloudbees-jenkins-advisor-plugin/statuses/97391862fbe1b241d415bdbd36525ba7a133d4ce"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":5,"additions":874,"deletions":3,"changed_files":20}}
{"actor":{"display_login":"kwhetstone"}}