Skip to content

Commit

Permalink
[JENKINS-29875] New API for long lived synchronous steps
Browse files Browse the repository at this point in the history
Originally-Committed-As: f37973876fb118578e1e6cf32c7b4348394121b2
  • Loading branch information
amuniz committed Aug 11, 2015
1 parent 1e0f0c2 commit 9ab99d8
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -31,13 +31,16 @@
import hudson.model.listeners.SCMListener;
import hudson.scm.SCM;
import hudson.scm.SCMRevisionState;

import java.io.File;
import java.io.Serializable;

import javax.annotation.Nonnull;
import javax.inject.Inject;

import org.jenkinsci.plugins.workflow.steps.AbstractStepDescriptorImpl;
import org.jenkinsci.plugins.workflow.steps.AbstractStepImpl;
import org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution;
import org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution;
import org.jenkinsci.plugins.workflow.steps.StepContextParameter;
import org.kohsuke.stapler.DataBoundSetter;

Expand Down Expand Up @@ -67,7 +70,7 @@ public boolean isChangelog() {

protected abstract @Nonnull SCM createSCM();

public static final class StepExecutionImpl extends AbstractSynchronousStepExecution<Void> {
public static final class StepExecutionImpl extends AbstractSynchronousNonBlockingStepExecution<Void> {

@Inject private transient SCMStep step;
@StepContextParameter private transient Run<?,?> run;
Expand Down

0 comments on commit 9ab99d8

Please sign in to comment.