Skip to content

Commit

Permalink
[JENKINS-60354] Mark thrown FlowInterruptedException as an actual int…
Browse files Browse the repository at this point in the history
…erruption
  • Loading branch information
dwnusbaum committed Dec 5, 2019
1 parent bd93aa5 commit b864183
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@
<changelist>-SNAPSHOT</changelist>
<jenkins.version>2.138.4</jenkins.version>
<java.level>8</java.level>
<workflow-step-api-plugin.version>2.22-rc550.2870bd01d2ff</workflow-step-api-plugin.version> <!-- TODO: https://github.com/jenkinsci/workflow-step-api-plugin/pull/51 -->
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom</artifactId>
<version>2.138.1</version>
<artifactId>bom-2.138.x</artifactId>
<version>4</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -57,6 +58,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-step-api</artifactId>
<version>${workflow-step-api-plugin.version}</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
Expand Down Expand Up @@ -99,6 +101,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-step-api</artifactId>
<version>${workflow-step-api-plugin.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b864183

Please sign in to comment.