{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/support-core-plugin/pulls/comments/35219060","id":35219060,"diff_hunk":"@@ -365,11 +365,23 @@ private void addLogRecorders(Container result) {\n     /**\n      * Grabs any files that look like log files directly under {@code $JENKINS_HOME}, just in case\n      * any of them are useful.\n-     *\n+     * Does not add anything if Jenkins instance is unavailable.\n      * Some plugins write log files here.\n      */\n     private void addOtherMasterLogs(Container result) {\n-        for (File f : Jenkins.getInstance().getRootDir().listFiles(ROTATED_LOGFILE_FILTER)) {\n+        final Jenkins jenkins = Jenkins.getInstance();\n+        if (jenkins == null) {\n+            LOGGER.log(Level.WARNING, \"Cannot add master logs to the bundle. Jenkins instance is not ready\");\n+            return;\n+        }\n+        \n+        final File[] logFiles = jenkins.getRootDir().listFiles(ROTATED_LOGFILE_FILTER);\n+        if (logFiles == null) {","path":"src/main/java/com/cloudbees/jenkins/support/impl/JenkinsLogs.java","position":17,"original_position":17,"commit_id":"75b74ab459d4a830a58b3df4c627e33868744ced","original_commit_id":"75b74ab459d4a830a58b3df4c627e33868744ced","user":{"login":"oleg-nenashev","id":3000480,"avatar_url":"https://avatars.githubusercontent.com/u/3000480?v=3","gravatar_id":"","url":"https://api.github.com/users/oleg-nenashev","html_url":"https://github.com/oleg-nenashev","followers_url":"https://api.github.com/users/oleg-nenashev/followers","following_url":"https://api.github.com/users/oleg-nenashev/following{/other_user}","gists_url":"https://api.github.com/users/oleg-nenashev/gists{/gist_id}","starred_url":"https://api.github.com/users/oleg-nenashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleg-nenashev/subscriptions","organizations_url":"https://api.github.com/users/oleg-nenashev/orgs","repos_url":"https://api.github.com/users/oleg-nenashev/repos","events_url":"https://api.github.com/users/oleg-nenashev/events{/privacy}","received_events_url":"https://api.github.com/users/oleg-nenashev/received_events","type":"User","site_admin":false},"body":"And another one...","created_at":"2015-07-22T14:34:15Z","updated_at":"2015-07-22T14:34:15Z","html_url":"https://github.com/jenkinsci/support-core-plugin/pull/40#discussion_r35219060","pull_request_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/support-core-plugin/pulls/comments/35219060"},"html":{"href":"https://github.com/jenkinsci/support-core-plugin/pull/40#discussion_r35219060"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/support-core-plugin/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/support-core-plugin/pulls/40","id":40039079,"html_url":"https://github.com/jenkinsci/support-core-plugin/pull/40","diff_url":"https://github.com/jenkinsci/support-core-plugin/pull/40.diff","patch_url":"https://github.com/jenkinsci/support-core-plugin/pull/40.patch","issue_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/issues/40","number":40,"state":"open","locked":false,"title":"Enable FindBugs for the project","user":{"login":"oleg-nenashev","id":3000480,"avatar_url":"https://avatars.githubusercontent.com/u/3000480?v=3","gravatar_id":"","url":"https://api.github.com/users/oleg-nenashev","html_url":"https://github.com/oleg-nenashev","followers_url":"https://api.github.com/users/oleg-nenashev/followers","following_url":"https://api.github.com/users/oleg-nenashev/following{/other_user}","gists_url":"https://api.github.com/users/oleg-nenashev/gists{/gist_id}","starred_url":"https://api.github.com/users/oleg-nenashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleg-nenashev/subscriptions","organizations_url":"https://api.github.com/users/oleg-nenashev/orgs","repos_url":"https://api.github.com/users/oleg-nenashev/repos","events_url":"https://api.github.com/users/oleg-nenashev/events{/privacy}","received_events_url":"https://api.github.com/users/oleg-nenashev/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-15T16:00:22Z","updated_at":"2015-07-22T14:34:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcc0bfacb1be95dfe93a0cabbec3c4af707cb00a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/pulls/40/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/pulls/40/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/issues/40/comments","statuses_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/statuses/75b74ab459d4a830a58b3df4c627e33868744ced","head":{"label":"oleg-nenashev:findbugs-cleanup","ref":"findbugs-cleanup","sha":"75b74ab459d4a830a58b3df4c627e33868744ced","user":{"login":"oleg-nenashev","id":3000480,"avatar_url":"https://avatars.githubusercontent.com/u/3000480?v=3","gravatar_id":"","url":"https://api.github.com/users/oleg-nenashev","html_url":"https://github.com/oleg-nenashev","followers_url":"https://api.github.com/users/oleg-nenashev/followers","following_url":"https://api.github.com/users/oleg-nenashev/following{/other_user}","gists_url":"https://api.github.com/users/oleg-nenashev/gists{/gist_id}","starred_url":"https://api.github.com/users/oleg-nenashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleg-nenashev/subscriptions","organizations_url":"https://api.github.com/users/oleg-nenashev/orgs","repos_url":"https://api.github.com/users/oleg-nenashev/repos","events_url":"https://api.github.com/users/oleg-nenashev/events{/privacy}","received_events_url":"https://api.github.com/users/oleg-nenashev/received_events","type":"User","site_admin":false},"repo":{"id":39145935,"name":"support-core-plugin","full_name":"oleg-nenashev/support-core-plugin","owner":{"login":"oleg-nenashev","id":3000480,"avatar_url":"https://avatars.githubusercontent.com/u/3000480?v=3","gravatar_id":"","url":"https://api.github.com/users/oleg-nenashev","html_url":"https://github.com/oleg-nenashev","followers_url":"https://api.github.com/users/oleg-nenashev/followers","following_url":"https://api.github.com/users/oleg-nenashev/following{/other_user}","gists_url":"https://api.github.com/users/oleg-nenashev/gists{/gist_id}","starred_url":"https://api.github.com/users/oleg-nenashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleg-nenashev/subscriptions","organizations_url":"https://api.github.com/users/oleg-nenashev/orgs","repos_url":"https://api.github.com/users/oleg-nenashev/repos","events_url":"https://api.github.com/users/oleg-nenashev/events{/privacy}","received_events_url":"https://api.github.com/users/oleg-nenashev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oleg-nenashev/support-core-plugin","description":"","fork":true,"url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin","forks_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/forks","keys_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/teams","hooks_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/hooks","issue_events_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/events","assignees_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/tags","blobs_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/languages","stargazers_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/stargazers","contributors_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/contributors","subscribers_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/subscribers","subscription_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/subscription","commits_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/merges","archive_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/downloads","issues_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/labels{/name}","releases_url":"https://api.github.com/repos/oleg-nenashev/support-core-plugin/releases{/id}","created_at":"2015-07-15T15:50:40Z","updated_at":"2015-07-15T15:50:41Z","pushed_at":"2015-07-22T07:24:00Z","git_url":"git://github.com/oleg-nenashev/support-core-plugin.git","ssh_url":"git@github.com:oleg-nenashev/support-core-plugin.git","clone_url":"https://github.com/oleg-nenashev/support-core-plugin.git","svn_url":"https://github.com/oleg-nenashev/support-core-plugin","homepage":"","size":564,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jenkinsci:master","ref":"master","sha":"5d839eb7d152bc18ce1625e9e5b548fc1d19bdb6","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","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":13830109,"name":"support-core-plugin","full_name":"jenkinsci/support-core-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","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/support-core-plugin","description":"","fork":false,"url":"https://api.github.com/repos/jenkinsci/support-core-plugin","forks_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/support-core-plugin/releases{/id}","created_at":"2013-10-24T11:18:45Z","updated_at":"2015-05-06T20:58:34Z","pushed_at":"2015-07-22T07:24:01Z","git_url":"git://github.com/jenkinsci/support-core-plugin.git","ssh_url":"git@github.com:jenkinsci/support-core-plugin.git","clone_url":"https://github.com/jenkinsci/support-core-plugin.git","svn_url":"https://github.com/jenkinsci/support-core-plugin","homepage":"","size":1601,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":3,"forks":10,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/support-core-plugin/pulls/40"},"html":{"href":"https://github.com/jenkinsci/support-core-plugin/pull/40"},"issue":{"href":"https://api.github.com/repos/jenkinsci/support-core-plugin/issues/40"},"comments":{"href":"https://api.github.com/repos/jenkinsci/support-core-plugin/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/support-core-plugin/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/support-core-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/support-core-plugin/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/support-core-plugin/statuses/75b74ab459d4a830a58b3df4c627e33868744ced"}}}}