-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
workflow plugin 1.1
As recorded in https://groups.google.com/d/msg/jenkinsci-dev/kgEc7vZQgi0/IC1rH_6KwNYJ:
—
> does 'parallel' have a return value?
It does not seem to be documented (and perhaps not tested) but it does
seem to return a map of the return values of its branches. File an
issue to make sure this is documented and tested (and works).
—
I marked this as a 'bug' though arguably it's a feature request.
- is related to
-
JENKINS-26034 Option to interrupt remaining branches when one branch fails
-
- Closed
-
- relates to
-
JENKINS-54514 Document parallel step failure logic
-
- In Review
-
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: