Skip to content

Commit

Permalink
Merge pull request #191 from jglick/StepExecution.stop-JENKINS-26148
Browse files Browse the repository at this point in the history
[JENKINS-26148] Using default implementation of StepExecution.stop
  • Loading branch information
abayer committed Sep 28, 2017
2 parents 2a35f45 + b3c9d1b commit 5c2b7d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Expand Up @@ -71,23 +71,15 @@ public DescriptorImpl() {

public static final class ScriptStepExecution extends AbstractStepExecutionImpl {

private BodyExecution body;

@Override
public boolean start() throws Exception {

body = getContext().newBodyInvoker()
getContext().newBodyInvoker()
.withCallback(BodyExecutionCallback.wrap(getContext()))
.start();
return false;
}

@Override
public void stop(Throwable cause) throws Exception {
if (body != null)
body.cancel(cause);
}

private static final long serialVersionUID = 1L;
}
}
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -211,7 +211,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-step-api</artifactId>
<version>2.11</version>
<version>2.13</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
Expand Down

0 comments on commit 5c2b7d1

Please sign in to comment.