Kohsuke Kawaguchi edited a comment on Bug JENKINS-25504

Messed up flow graph attached.

Flow node #5 is the result of PlaceholderExecutable calling context.onFailure(). This has the correct ErrorAction. This terminates CpsThread #0 correctly with an error, but it doesn't end the workflow because there's still another one running (the CpsThread #1 that executes the body.)

Then shell script eventually complete and the rest of the flow nodes get added. This concludes CpsThread #1 normally, and because this is the last thread to finish, the workflow as a whole finishes its result, which is null.

This is why FlowEndNode reports no ErrorAction.

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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to