{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/workflow-plugin/issues/80","labels_url":"https://api.github.com/repos/jenkinsci/workflow-plugin/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/workflow-plugin/issues/80/comments","events_url":"https://api.github.com/repos/jenkinsci/workflow-plugin/issues/80/events","html_url":"https://github.com/jenkinsci/workflow-plugin/pull/80","id":60098146,"number":80,"title":"[JENKINS-26122] Prepend parallel step execution logs with the branch label","user":{"login":"tfennelly","id":429311,"avatar_url":"https://avatars.githubusercontent.com/u/429311?v=3","gravatar_id":"","url":"https://api.github.com/users/tfennelly","html_url":"https://github.com/tfennelly","followers_url":"https://api.github.com/users/tfennelly/followers","following_url":"https://api.github.com/users/tfennelly/following{/other_user}","gists_url":"https://api.github.com/users/tfennelly/gists{/gist_id}","starred_url":"https://api.github.com/users/tfennelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfennelly/subscriptions","organizations_url":"https://api.github.com/users/tfennelly/orgs","repos_url":"https://api.github.com/users/tfennelly/repos","events_url":"https://api.github.com/users/tfennelly/events{/privacy}","received_events_url":"https://api.github.com/users/tfennelly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-06T12:52:05Z","updated_at":"2015-03-06T18:09:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/workflow-plugin/pulls/80","html_url":"https://github.com/jenkinsci/workflow-plugin/pull/80","diff_url":"https://github.com/jenkinsci/workflow-plugin/pull/80.diff","patch_url":"https://github.com/jenkinsci/workflow-plugin/pull/80.patch"},"body":"See [JENKINS-26122](https://issues.jenkins-ci.org/browse/JENKINS-26122)\r\n\r\nPrefixes log entries from the `parallel` step using the branch name. Added `BodyExecutionLabelAction` (currently located in the `workflow-api` module, which seems wrong ... see comment in `BodyExecutionLabelAction`) and modified `ParallelLabelAction` to extend it.\r\n\r\nExample output - see the `[a]` and `[b]` prefixes on some of the log lines in the following sample.\r\n\r\n```\r\nStarted by user anonymous\r\nRunning: Allocate node : Start\r\nRunning on master in /Users/tfennelly/projects/jenkins-plugins/workflow-plugin/aggregator/work/jobs/Workflwo/workspace\r\nRunning: Allocate node : Body : Start\r\nRunning: Execute sub-workflows in parallel : Start\r\n[a] Running: Parallel branch: a\r\n[b] Running: Parallel branch: b\r\n[a] Running: Print Message\r\n[a] echo a\r\n[a] Running: Print Message\r\n[a] echo a\r\n[a] Running: Print Message\r\n[a] echo a\r\nRunning: Execute sub-workflows in parallel : Body : End\r\n[b] Running: Print Message\r\n[b] echo b\r\n[b] Running: Print Message\r\n[b] echo b\r\n[b] Running: Print Message\r\n[b] echo b\r\nRunning: Execute sub-workflows in parallel : Body : End\r\nRunning: Execute sub-workflows in parallel : End\r\nRunning: Allocate node : Body : End\r\nRunning: Allocate node : End\r\nRunning: End of Workflow\r\nFinished: SUCCESS\r\n```\r\n\r\n@reviewbybees please"},"comment":{"url":"https://api.github.com/repos/jenkinsci/workflow-plugin/issues/comments/77606294","html_url":"https://github.com/jenkinsci/workflow-plugin/pull/80#issuecomment-77606294","issue_url":"https://api.github.com/repos/jenkinsci/workflow-plugin/issues/80","id":77606294,"user":{"login":"tfennelly","id":429311,"avatar_url":"https://avatars.githubusercontent.com/u/429311?v=3","gravatar_id":"","url":"https://api.github.com/users/tfennelly","html_url":"https://github.com/tfennelly","followers_url":"https://api.github.com/users/tfennelly/followers","following_url":"https://api.github.com/users/tfennelly/following{/other_user}","gists_url":"https://api.github.com/users/tfennelly/gists{/gist_id}","starred_url":"https://api.github.com/users/tfennelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfennelly/subscriptions","organizations_url":"https://api.github.com/users/tfennelly/orgs","repos_url":"https://api.github.com/users/tfennelly/repos","events_url":"https://api.github.com/users/tfennelly/events{/privacy}","received_events_url":"https://api.github.com/users/tfennelly/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T18:09:08Z","updated_at":"2015-03-06T18:09:08Z","body":"@jglick ok I think that's fixed now using `BlockEndNode` - I was just using it incorrectly.\r\n\r\nAlso removed `ParallelLabelAction.getBranchName()` as requested. Hopefully tests pass and we can give it a thumbs up ;)\r\n\r\nBack to Basketball match now :)"}}