{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/pulls/comments/80314120","id":80314120,"diff_hunk":"@@ -400,6 +402,41 @@ private void startJnlpProc() throws Exception {\n         });\n     }\n \n+    @Test public void detailsExported() throws Exception {\n+        story.addStep(new Statement() {\n+            @Override\n+            public void evaluate() throws Throwable {\n+                DumbSlave s = story.j.createOnlineSlave();\n+\n+                WorkflowJob p = story.j.jenkins.createProject(WorkflowJob.class, \"demo\");\n+                p.setDefinition(new CpsFlowDefinition(\n+                        \"node('\" + s.getNodeName() + \"') {\\n\" +\n+                                \"    sleep 10\\n\" +\n+                                \"}\"));\n+\n+                WorkflowRun b = p.scheduleBuild2(0).waitForStart();\n+                Thread.sleep(100);\n+                JenkinsRule.WebClient wc = story.j.createWebClient();\n+                Page page = wc\n+                        .goTo(\"computer/\" + s.getNodeName()\n+                                        + \"/api/xml?depth=2&xpath=//currentExecutable/number/text()\",\n+                                \"text/plain\");\n+\n+                assertEquals(\"1\", page.getWebResponse().getContentAsString());\n+                page = wc.goTo(\"computer/\" + s.getNodeName()\n+                                + \"/api/xml?depth=2&xpath=//currentExecutable/displayName/text()\",\n+                        \"text/plain\");\n+                assertEquals(\"part of \" + p.getDisplayName() + \" #1\",","path":"src/test/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepTest.java","position":44,"original_position":44,"commit_id":"e3238ad3968746cc837072037fd236dd97403ed9","original_commit_id":"e3238ad3968746cc837072037fd236dd97403ed9","user":{"login":"jglick","id":154109,"avatar_url":"https://avatars.githubusercontent.com/u/154109?v=3","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"body":"Test would run more quickly if you get all three fields in one response (easy enough with `tree`).","created_at":"2016-09-23T19:45:50Z","updated_at":"2016-09-23T19:46:49Z","html_url":"https://github.com/jenkinsci/workflow-durable-task-step-plugin/pull/19#discussion_r80314120","pull_request_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/pulls/comments/80314120"},"html":{"href":"https://github.com/jenkinsci/workflow-durable-task-step-plugin/pull/19#discussion_r80314120"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/pulls/19","id":85978953,"html_url":"https://github.com/jenkinsci/workflow-durable-task-step-plugin/pull/19","diff_url":"https://github.com/jenkinsci/workflow-durable-task-step-plugin/pull/19.diff","patch_url":"https://github.com/jenkinsci/workflow-durable-task-step-plugin/pull/19.patch","issue_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/issues/19","number":19,"state":"open","locked":false,"title":"Run part details not exported via API","user":{"login":"scoheb","id":3596711,"avatar_url":"https://avatars.githubusercontent.com/u/3596711?v=3","gravatar_id":"","url":"https://api.github.com/users/scoheb","html_url":"https://github.com/scoheb","followers_url":"https://api.github.com/users/scoheb/followers","following_url":"https://api.github.com/users/scoheb/following{/other_user}","gists_url":"https://api.github.com/users/scoheb/gists{/gist_id}","starred_url":"https://api.github.com/users/scoheb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoheb/subscriptions","organizations_url":"https://api.github.com/users/scoheb/orgs","repos_url":"https://api.github.com/users/scoheb/repos","events_url":"https://api.github.com/users/scoheb/events{/privacy}","received_events_url":"https://api.github.com/users/scoheb/received_events","type":"User","site_admin":false},"body":"When part of a workflow run is executing on a node, the corresponding run details are not available via the API (xml/json)\r\n\r\nWithout this patch, the run part cannot be identified by examining the API call's result.\r\n\r\nThis poses a problem for an integration such as python-jenkins where its server.get_running_builds()\r\nqueries each node to build up an array of builds. As a mininum, 'number' and 'url' are needed.\r\n\r\nThe plugin exposes this data already via Jelly in the Executor view.","created_at":"2016-09-20T13:49:56Z","updated_at":"2016-09-23T19:46:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3cb66f7555b15ff269fa84cfef99fc53fa2df1cb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/pulls/19/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/pulls/19/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/issues/19/comments","statuses_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/statuses/e3238ad3968746cc837072037fd236dd97403ed9","head":{"label":"scoheb:export-run-part-details","ref":"export-run-part-details","sha":"e3238ad3968746cc837072037fd236dd97403ed9","user":{"login":"scoheb","id":3596711,"avatar_url":"https://avatars.githubusercontent.com/u/3596711?v=3","gravatar_id":"","url":"https://api.github.com/users/scoheb","html_url":"https://github.com/scoheb","followers_url":"https://api.github.com/users/scoheb/followers","following_url":"https://api.github.com/users/scoheb/following{/other_user}","gists_url":"https://api.github.com/users/scoheb/gists{/gist_id}","starred_url":"https://api.github.com/users/scoheb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoheb/subscriptions","organizations_url":"https://api.github.com/users/scoheb/orgs","repos_url":"https://api.github.com/users/scoheb/repos","events_url":"https://api.github.com/users/scoheb/events{/privacy}","received_events_url":"https://api.github.com/users/scoheb/received_events","type":"User","site_admin":false},"repo":{"id":68715670,"name":"workflow-durable-task-step-plugin","full_name":"scoheb/workflow-durable-task-step-plugin","owner":{"login":"scoheb","id":3596711,"avatar_url":"https://avatars.githubusercontent.com/u/3596711?v=3","gravatar_id":"","url":"https://api.github.com/users/scoheb","html_url":"https://github.com/scoheb","followers_url":"https://api.github.com/users/scoheb/followers","following_url":"https://api.github.com/users/scoheb/following{/other_user}","gists_url":"https://api.github.com/users/scoheb/gists{/gist_id}","starred_url":"https://api.github.com/users/scoheb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoheb/subscriptions","organizations_url":"https://api.github.com/users/scoheb/orgs","repos_url":"https://api.github.com/users/scoheb/repos","events_url":"https://api.github.com/users/scoheb/events{/privacy}","received_events_url":"https://api.github.com/users/scoheb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scoheb/workflow-durable-task-step-plugin","description":null,"fork":true,"url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin","forks_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/forks","keys_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/teams","hooks_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/hooks","issue_events_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/events","assignees_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/tags","blobs_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/languages","stargazers_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/stargazers","contributors_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/contributors","subscribers_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/subscribers","subscription_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/subscription","commits_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/merges","archive_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/downloads","issues_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/labels{/name}","releases_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/scoheb/workflow-durable-task-step-plugin/deployments","created_at":"2016-09-20T13:40:29Z","updated_at":"2016-09-20T13:40:30Z","pushed_at":"2016-09-20T14:24:50Z","git_url":"git://github.com/scoheb/workflow-durable-task-step-plugin.git","ssh_url":"git@github.com:scoheb/workflow-durable-task-step-plugin.git","clone_url":"https://github.com/scoheb/workflow-durable-task-step-plugin.git","svn_url":"https://github.com/scoheb/workflow-durable-task-step-plugin","homepage":"https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Nodes+and+Processes+Plugin","size":411,"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":"d8e2e3ab6546c9ebb2c6004f0d2dc984dc255d36","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":55542559,"name":"workflow-durable-task-step-plugin","full_name":"jenkinsci/workflow-durable-task-step-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/workflow-durable-task-step-plugin","description":"","fork":false,"url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin","forks_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/deployments","created_at":"2016-04-05T20:14:38Z","updated_at":"2016-08-31T14:04:57Z","pushed_at":"2016-09-21T20:21:51Z","git_url":"git://github.com/jenkinsci/workflow-durable-task-step-plugin.git","ssh_url":"git@github.com:jenkinsci/workflow-durable-task-step-plugin.git","clone_url":"https://github.com/jenkinsci/workflow-durable-task-step-plugin.git","svn_url":"https://github.com/jenkinsci/workflow-durable-task-step-plugin","homepage":"https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Nodes+and+Processes+Plugin","size":442,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":4,"forks":12,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/pulls/19"},"html":{"href":"https://github.com/jenkinsci/workflow-durable-task-step-plugin/pull/19"},"issue":{"href":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/issues/19"},"comments":{"href":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/workflow-durable-task-step-plugin/statuses/e3238ad3968746cc837072037fd236dd97403ed9"}}}}
{"actor":{"display_login":"jglick"}}