Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/main/groovy/com/cloudbees/plugins/flow/FlowDSL.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,12 @@ public class FlowDelegate {
Result result = final_state.result
results.add(final_state)
current_state.result = current_state.result.combine(result)
} catch(ExecutionException e)
{
} catch(CancellationException e) {
// TODO perhaps rethrow?
current_state.result = FAILURE
listener.error("Failed to run DSL Script: At least one of the tasks of the buildflow was cancelled")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about e.getMessage() in the log. Just for the sake of better logging

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oleg-nenashev Is not e.printStackTrace(listener.getLogger()) enough?

e.printStackTrace(listener.getLogger())
} catch(ExecutionException e) {
// TODO perhaps rethrow?
current_state.result = FAILURE
listener.error("Failed to run DSL Script")
Expand Down