{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/pulls/comments/68765028","id":68765028,"diff_hunk":"@@ -274,9 +293,28 @@ static private void collect(TestResult r, Map<String, TestClass> data) {\n         }\n     }\n \n-    private static TestResult findPreviousTestResult(Run<?, ?> b, TaskListener listener) {\n-        for (int i = 0; i < NUMBER_OF_BUILDS_TO_SEARCH; i++) {// limit the search to a small number to avoid loading too much\n-            b = b.getPreviousBuild();\n+    private static TestResult findPreviousTestResult(Run<?, ?> originalBuild, TaskListener listener, String alternateJob) {\n+        Run<?,?> b = originalBuild.getPreviousBuild();\n+        if (alternateJob != null && !alternateJob.equals(\"\")) {\n+            TopLevelItem item = Jenkins.getInstance().getItem(alternateJob);\n+            if (item != null) {\n+                if (item instanceof Job) {\n+                    Job j = (Job) item;","path":"src/main/java/org/jenkinsci/plugins/parallel_test_executor/ParallelTestExecutor.java","position":73,"original_position":73,"commit_id":"eca3557aa265c7029314b9f4518797c087d3d52f","original_commit_id":"eca3557aa265c7029314b9f4518797c087d3d52f","user":{"login":"abayer","id":120218,"avatar_url":"https://avatars.githubusercontent.com/u/120218?v=3","gravatar_id":"","url":"https://api.github.com/users/abayer","html_url":"https://github.com/abayer","followers_url":"https://api.github.com/users/abayer/followers","following_url":"https://api.github.com/users/abayer/following{/other_user}","gists_url":"https://api.github.com/users/abayer/gists{/gist_id}","starred_url":"https://api.github.com/users/abayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abayer/subscriptions","organizations_url":"https://api.github.com/users/abayer/orgs","repos_url":"https://api.github.com/users/abayer/repos","events_url":"https://api.github.com/users/abayer/events{/privacy}","received_events_url":"https://api.github.com/users/abayer/received_events","type":"User","site_admin":false},"body":"Okiedokie!","created_at":"2016-06-28T14:18:45Z","updated_at":"2016-06-28T14:18:45Z","html_url":"https://github.com/jenkinsci/parallel-test-executor-plugin/pull/18#discussion_r68765028","pull_request_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/pulls/comments/68765028"},"html":{"href":"https://github.com/jenkinsci/parallel-test-executor-plugin/pull/18#discussion_r68765028"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/pulls/18","id":75395735,"html_url":"https://github.com/jenkinsci/parallel-test-executor-plugin/pull/18","diff_url":"https://github.com/jenkinsci/parallel-test-executor-plugin/pull/18.diff","patch_url":"https://github.com/jenkinsci/parallel-test-executor-plugin/pull/18.patch","issue_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/issues/18","number":18,"state":"open","locked":false,"title":"[JENKINS-22896] Allow specifying a different job for test results.","user":{"login":"abayer","id":120218,"avatar_url":"https://avatars.githubusercontent.com/u/120218?v=3","gravatar_id":"","url":"https://api.github.com/users/abayer","html_url":"https://github.com/abayer","followers_url":"https://api.github.com/users/abayer/followers","following_url":"https://api.github.com/users/abayer/following{/other_user}","gists_url":"https://api.github.com/users/abayer/gists{/gist_id}","starred_url":"https://api.github.com/users/abayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abayer/subscriptions","organizations_url":"https://api.github.com/users/abayer/orgs","repos_url":"https://api.github.com/users/abayer/repos","events_url":"https://api.github.com/users/abayer/events{/privacy}","received_events_url":"https://api.github.com/users/abayer/received_events","type":"User","site_admin":false},"body":"https://issues.jenkins-ci.org/browse/JENKINS-22896\r\n\r\nThis allows you to specify a different job for the test results used\r\nto split the parallel test execution. With this functionality, you can\r\nuse this with multibranch jobs (say, pull requests) pointing at a job\r\nwith a longer lifespan than the more ephemeral PR jobs, so that the\r\nfirst build of a PR job doesn't need to run all the tests due to lack\r\nof history.\r\n\r\ncc @reviewbybees, especially @jglick","created_at":"2016-06-27T23:19:59Z","updated_at":"2016-06-28T14:18:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40f181ffded88605caab914dbb142c43048ea9a7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/pulls/18/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/pulls/18/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/issues/18/comments","statuses_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/statuses/eca3557aa265c7029314b9f4518797c087d3d52f","head":{"label":"abayer:jenkins-22896","ref":"jenkins-22896","sha":"eca3557aa265c7029314b9f4518797c087d3d52f","user":{"login":"abayer","id":120218,"avatar_url":"https://avatars.githubusercontent.com/u/120218?v=3","gravatar_id":"","url":"https://api.github.com/users/abayer","html_url":"https://github.com/abayer","followers_url":"https://api.github.com/users/abayer/followers","following_url":"https://api.github.com/users/abayer/following{/other_user}","gists_url":"https://api.github.com/users/abayer/gists{/gist_id}","starred_url":"https://api.github.com/users/abayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abayer/subscriptions","organizations_url":"https://api.github.com/users/abayer/orgs","repos_url":"https://api.github.com/users/abayer/repos","events_url":"https://api.github.com/users/abayer/events{/privacy}","received_events_url":"https://api.github.com/users/abayer/received_events","type":"User","site_admin":false},"repo":{"id":61067804,"name":"parallel-test-executor-plugin","full_name":"abayer/parallel-test-executor-plugin","owner":{"login":"abayer","id":120218,"avatar_url":"https://avatars.githubusercontent.com/u/120218?v=3","gravatar_id":"","url":"https://api.github.com/users/abayer","html_url":"https://github.com/abayer","followers_url":"https://api.github.com/users/abayer/followers","following_url":"https://api.github.com/users/abayer/following{/other_user}","gists_url":"https://api.github.com/users/abayer/gists{/gist_id}","starred_url":"https://api.github.com/users/abayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abayer/subscriptions","organizations_url":"https://api.github.com/users/abayer/orgs","repos_url":"https://api.github.com/users/abayer/repos","events_url":"https://api.github.com/users/abayer/events{/privacy}","received_events_url":"https://api.github.com/users/abayer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abayer/parallel-test-executor-plugin","description":"Parallel test executor plugin","fork":true,"url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin","forks_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/forks","keys_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/teams","hooks_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/hooks","issue_events_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/events","assignees_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/tags","blobs_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/languages","stargazers_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/stargazers","contributors_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/contributors","subscribers_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/subscribers","subscription_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/subscription","commits_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/merges","archive_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/downloads","issues_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/labels{/name}","releases_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/abayer/parallel-test-executor-plugin/deployments","created_at":"2016-06-13T20:34:29Z","updated_at":"2016-06-13T20:34:30Z","pushed_at":"2016-06-27T23:37:53Z","git_url":"git://github.com/abayer/parallel-test-executor-plugin.git","ssh_url":"git@github.com:abayer/parallel-test-executor-plugin.git","clone_url":"https://github.com/abayer/parallel-test-executor-plugin.git","svn_url":"https://github.com/abayer/parallel-test-executor-plugin","homepage":"https://wiki.jenkins-ci.org/display/JENKINS/Parallel+Test+Executor+Plugin","size":124,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"52ee8cf5f8971aa7db44623a310d538b67073a54","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":10414359,"name":"parallel-test-executor-plugin","full_name":"jenkinsci/parallel-test-executor-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/parallel-test-executor-plugin","description":"Parallel test executor plugin","fork":false,"url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin","forks_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/deployments","created_at":"2013-05-31T22:46:53Z","updated_at":"2016-06-13T06:31:55Z","pushed_at":"2016-06-27T23:37:54Z","git_url":"git://github.com/jenkinsci/parallel-test-executor-plugin.git","ssh_url":"git@github.com:jenkinsci/parallel-test-executor-plugin.git","clone_url":"https://github.com/jenkinsci/parallel-test-executor-plugin.git","svn_url":"https://github.com/jenkinsci/parallel-test-executor-plugin","homepage":"https://wiki.jenkins-ci.org/display/JENKINS/Parallel+Test+Executor+Plugin","size":127,"stargazers_count":13,"watchers_count":13,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":6,"forks":11,"open_issues":6,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/pulls/18"},"html":{"href":"https://github.com/jenkinsci/parallel-test-executor-plugin/pull/18"},"issue":{"href":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/issues/18"},"comments":{"href":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/parallel-test-executor-plugin/statuses/eca3557aa265c7029314b9f4518797c087d3d52f"}}}}
{"actor":{"display_login":"abayer"}}