I am tempted to say that the return value should just be null (unused). If you actually need to track the result of various branches, it is clearer to do so directly. For example:

def x, y
parallel one: {x = 1}, two: {y = 2}
echo "x+y = ${x+y}"

This also makes it obvious how to track exceptions in branches:

def result
parallel main: {
  try {
    node {sh 'false'}
    result = 'success'
  } catch (x) {
    result = "error: ${x}"
  }
}
echo result
Change By: Jesse Glick (12/Dec/14 4:13 PM)
Assignee: Jesse Glick Kohsuke Kawaguchi
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to