{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/comments/49766217","id":49766217,"diff_hunk":"@@ -167,21 +168,34 @@ public boolean canRunTests(MojoInfo mojo) {\n     }\n     \n     @CheckForNull public Iterable<File> getReportFiles(MavenProject pom, MojoInfo mojo) throws ComponentConfigurationException {\n+        File reportsDir = getReportsDirectory(pom, mojo);\n+        if (reportsDir != null && reportsDir.exists())\n+            return getReportFiles(reportsDir, getFileSet(reportsDir));\n+        \n+        return null;\n+    }\n+\n+    /**\n+     * Returns the location of test reports created by the specified MOJO.\n+     * @param pom The project model.\n+     * @param mojo The MOJO.\n+     * @return The directory containing the test reports.\n+     * @throws ComponentConfigurationException if unable to retrieve the report directory from the MOJO configuration.\n+     */\n+    protected File getReportsDirectory(MavenProject pom, MojoInfo mojo) throws ComponentConfigurationException {\n+    \t// [JENKINS-31258] Allow unknown MOJOs to contribute test results in arbitrary locations by setting a Maven property.\n+\t\tString reportsDirectoryOverride = getReportsDirectoryOverride(mojo);\n+\t\tif (reportsDirectoryOverride != null)","path":"src/main/java/hudson/maven/reporters/TestMojo.java","position":29,"original_position":29,"commit_id":"f4f16924d6b0a1d19e74c8a688c918e00c92555b","original_commit_id":"f4f16924d6b0a1d19e74c8a688c918e00c92555b","user":{"login":"demonfiddler","id":14012347,"avatar_url":"https://avatars.githubusercontent.com/u/14012347?v=3","gravatar_id":"","url":"https://api.github.com/users/demonfiddler","html_url":"https://github.com/demonfiddler","followers_url":"https://api.github.com/users/demonfiddler/followers","following_url":"https://api.github.com/users/demonfiddler/following{/other_user}","gists_url":"https://api.github.com/users/demonfiddler/gists{/gist_id}","starred_url":"https://api.github.com/users/demonfiddler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demonfiddler/subscriptions","organizations_url":"https://api.github.com/users/demonfiddler/orgs","repos_url":"https://api.github.com/users/demonfiddler/repos","events_url":"https://api.github.com/users/demonfiddler/events{/privacy}","received_events_url":"https://api.github.com/users/demonfiddler/received_events","type":"User","site_admin":false},"body":"This file has used spaces throughout since its inception by Christoph Kutzinski on 06/01/2013. The Jenkins 'code of conduct' requests that one mainain stylistic consistency and explicitly bans auto-reformatting.","created_at":"2016-01-14T18:44:34Z","updated_at":"2016-01-14T18:44:34Z","html_url":"https://github.com/jenkinsci/maven-plugin/pull/56#discussion_r49766217","pull_request_url":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/comments/49766217"},"html":{"href":"https://github.com/jenkinsci/maven-plugin/pull/56#discussion_r49766217"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/56","id":53236685,"html_url":"https://github.com/jenkinsci/maven-plugin/pull/56","diff_url":"https://github.com/jenkinsci/maven-plugin/pull/56.diff","patch_url":"https://github.com/jenkinsci/maven-plugin/pull/56.patch","issue_url":"https://api.github.com/repos/jenkinsci/maven-plugin/issues/56","number":56,"state":"open","locked":false,"title":"Merge fixes for JENKINS-31258 and JENKINS-31524","user":{"login":"demonfiddler","id":14012347,"avatar_url":"https://avatars.githubusercontent.com/u/14012347?v=3","gravatar_id":"","url":"https://api.github.com/users/demonfiddler","html_url":"https://github.com/demonfiddler","followers_url":"https://api.github.com/users/demonfiddler/followers","following_url":"https://api.github.com/users/demonfiddler/following{/other_user}","gists_url":"https://api.github.com/users/demonfiddler/gists{/gist_id}","starred_url":"https://api.github.com/users/demonfiddler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demonfiddler/subscriptions","organizations_url":"https://api.github.com/users/demonfiddler/orgs","repos_url":"https://api.github.com/users/demonfiddler/repos","events_url":"https://api.github.com/users/demonfiddler/events{/privacy}","received_events_url":"https://api.github.com/users/demonfiddler/received_events","type":"User","site_admin":false},"body":"Please accept these fixes:\r\n- JENKINS-31258 (Jenkins Maven plug-in ignores JUnit-format test results from unknown Maven plug-ins)\r\n- JENKINS-31524 (SurefireArchiver ignores updated results when multiple testing plug-ins use the same reports directory).\r\n\r\nThanks!","created_at":"2015-12-10T09:58:39Z","updated_at":"2016-01-14T18:44:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1cbf07c96844aed9f570a4f22225efd5bd889f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/56/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/56/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/maven-plugin/issues/56/comments","statuses_url":"https://api.github.com/repos/jenkinsci/maven-plugin/statuses/f4f16924d6b0a1d19e74c8a688c918e00c92555b","head":{"label":"demonfiddler:master","ref":"master","sha":"f4f16924d6b0a1d19e74c8a688c918e00c92555b","user":{"login":"demonfiddler","id":14012347,"avatar_url":"https://avatars.githubusercontent.com/u/14012347?v=3","gravatar_id":"","url":"https://api.github.com/users/demonfiddler","html_url":"https://github.com/demonfiddler","followers_url":"https://api.github.com/users/demonfiddler/followers","following_url":"https://api.github.com/users/demonfiddler/following{/other_user}","gists_url":"https://api.github.com/users/demonfiddler/gists{/gist_id}","starred_url":"https://api.github.com/users/demonfiddler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demonfiddler/subscriptions","organizations_url":"https://api.github.com/users/demonfiddler/orgs","repos_url":"https://api.github.com/users/demonfiddler/repos","events_url":"https://api.github.com/users/demonfiddler/events{/privacy}","received_events_url":"https://api.github.com/users/demonfiddler/received_events","type":"User","site_admin":false},"repo":{"id":45484701,"name":"maven-plugin","full_name":"demonfiddler/maven-plugin","owner":{"login":"demonfiddler","id":14012347,"avatar_url":"https://avatars.githubusercontent.com/u/14012347?v=3","gravatar_id":"","url":"https://api.github.com/users/demonfiddler","html_url":"https://github.com/demonfiddler","followers_url":"https://api.github.com/users/demonfiddler/followers","following_url":"https://api.github.com/users/demonfiddler/following{/other_user}","gists_url":"https://api.github.com/users/demonfiddler/gists{/gist_id}","starred_url":"https://api.github.com/users/demonfiddler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demonfiddler/subscriptions","organizations_url":"https://api.github.com/users/demonfiddler/orgs","repos_url":"https://api.github.com/users/demonfiddler/repos","events_url":"https://api.github.com/users/demonfiddler/events{/privacy}","received_events_url":"https://api.github.com/users/demonfiddler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/demonfiddler/maven-plugin","description":"","fork":true,"url":"https://api.github.com/repos/demonfiddler/maven-plugin","forks_url":"https://api.github.com/repos/demonfiddler/maven-plugin/forks","keys_url":"https://api.github.com/repos/demonfiddler/maven-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/demonfiddler/maven-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/demonfiddler/maven-plugin/teams","hooks_url":"https://api.github.com/repos/demonfiddler/maven-plugin/hooks","issue_events_url":"https://api.github.com/repos/demonfiddler/maven-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/demonfiddler/maven-plugin/events","assignees_url":"https://api.github.com/repos/demonfiddler/maven-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/demonfiddler/maven-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/demonfiddler/maven-plugin/tags","blobs_url":"https://api.github.com/repos/demonfiddler/maven-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/demonfiddler/maven-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/demonfiddler/maven-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/demonfiddler/maven-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/demonfiddler/maven-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/demonfiddler/maven-plugin/languages","stargazers_url":"https://api.github.com/repos/demonfiddler/maven-plugin/stargazers","contributors_url":"https://api.github.com/repos/demonfiddler/maven-plugin/contributors","subscribers_url":"https://api.github.com/repos/demonfiddler/maven-plugin/subscribers","subscription_url":"https://api.github.com/repos/demonfiddler/maven-plugin/subscription","commits_url":"https://api.github.com/repos/demonfiddler/maven-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/demonfiddler/maven-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/demonfiddler/maven-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/demonfiddler/maven-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/demonfiddler/maven-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/demonfiddler/maven-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/demonfiddler/maven-plugin/merges","archive_url":"https://api.github.com/repos/demonfiddler/maven-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/demonfiddler/maven-plugin/downloads","issues_url":"https://api.github.com/repos/demonfiddler/maven-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/demonfiddler/maven-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/demonfiddler/maven-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/demonfiddler/maven-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/demonfiddler/maven-plugin/labels{/name}","releases_url":"https://api.github.com/repos/demonfiddler/maven-plugin/releases{/id}","created_at":"2015-11-03T17:51:48Z","updated_at":"2015-11-03T17:51:52Z","pushed_at":"2015-12-10T09:47:56Z","git_url":"git://github.com/demonfiddler/maven-plugin.git","ssh_url":"git@github.com:demonfiddler/maven-plugin.git","clone_url":"https://github.com/demonfiddler/maven-plugin.git","svn_url":"https://github.com/demonfiddler/maven-plugin","homepage":"","size":3416,"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":"f3f1f1123a727958b59ea3a731f9cae77b94ab0f","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":13022394,"name":"maven-plugin","full_name":"jenkinsci/maven-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/maven-plugin","description":"","fork":false,"url":"https://api.github.com/repos/jenkinsci/maven-plugin","forks_url":"https://api.github.com/repos/jenkinsci/maven-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/maven-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/maven-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/maven-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/maven-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/maven-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/maven-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/maven-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/maven-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/maven-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/maven-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/maven-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/maven-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/maven-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/maven-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/maven-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/maven-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/maven-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/maven-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/maven-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/maven-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/maven-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/maven-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/maven-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/maven-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/maven-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/maven-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/maven-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/maven-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/maven-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/maven-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/maven-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/maven-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/maven-plugin/releases{/id}","created_at":"2013-09-22T22:52:27Z","updated_at":"2015-12-11T17:03:38Z","pushed_at":"2016-01-06T21:13:10Z","git_url":"git://github.com/jenkinsci/maven-plugin.git","ssh_url":"git@github.com:jenkinsci/maven-plugin.git","clone_url":"https://github.com/jenkinsci/maven-plugin.git","svn_url":"https://github.com/jenkinsci/maven-plugin","homepage":"","size":3647,"stargazers_count":14,"watchers_count":14,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":87,"mirror_url":null,"open_issues_count":10,"forks":87,"open_issues":10,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/56"},"html":{"href":"https://github.com/jenkinsci/maven-plugin/pull/56"},"issue":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/issues/56"},"comments":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/statuses/f4f16924d6b0a1d19e74c8a688c918e00c92555b"}}}}