From b864183905b98dc6d3809a738f45407ae54bf87c Mon Sep 17 00:00:00 2001 From: Devin Nusbaum Date: Thu, 5 Dec 2019 14:08:18 -0500 Subject: [PATCH] [JENKINS-60354] Mark thrown FlowInterruptedException as an actual interruption --- pom.xml | 7 +++++-- .../workflow/support/steps/input/InputStepExecution.java | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 8d2ce995..9878b639 100644 --- a/pom.xml +++ b/pom.xml @@ -41,13 +41,14 @@ -SNAPSHOT 2.138.4 8 + 2.22-rc550.2870bd01d2ff io.jenkins.tools.bom - bom - 2.138.1 + bom-2.138.x + 4 pom import @@ -57,6 +58,7 @@ org.jenkins-ci.plugins.workflow workflow-step-api + ${workflow-step-api-plugin.version} org.jenkins-ci.plugins.workflow @@ -99,6 +101,7 @@ org.jenkins-ci.plugins.workflow workflow-step-api + ${workflow-step-api-plugin.version} tests test diff --git a/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputStepExecution.java b/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputStepExecution.java index 173302bd..3df00c03 100644 --- a/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputStepExecution.java +++ b/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputStepExecution.java @@ -228,7 +228,7 @@ public HttpResponse doProceedEmpty() throws IOException { public HttpResponse doAbort() { preAbortCheck(); - FlowInterruptedException e = new FlowInterruptedException(Result.ABORTED, new Rejection(User.current())); + FlowInterruptedException e = new FlowInterruptedException(Result.ABORTED, true, new Rejection(User.current())); outcome = new Outcome(null,e); postSettlement(); getContext().onFailure(e);