public class SimpleBuildStepExecution extends org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution<Void>
StepExecution which can be used
to implement the Step.start(StepContext) method.
A general example would be
\@Override
public StepExecution start(StepContext context) throws Exception {
return new SimpleBuildStepExecution(new YourSimpleBuildStep(this), context);
}
where YourSimpleBuildStep is the describable instance that uses the context that extends from
Step. For the context descriptor, it should extends from
StepDescriptor and its getRequiredContext() should return
at least REQUIRED_CONTEXT.
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.collect.ImmutableSet<? extends Class<?>> |
REQUIRED_CONTEXT |
| Constructor and Description |
|---|
SimpleBuildStepExecution(jenkins.tasks.SimpleBuildStep delegate,
org.jenkinsci.plugins.workflow.steps.StepContext context) |
| Modifier and Type | Method and Description |
|---|---|
String |
getStatus() |
protected Void |
run() |
onResume, start, stoppublic static final com.google.common.collect.ImmutableSet<? extends Class<?>> REQUIRED_CONTEXT
public SimpleBuildStepExecution(jenkins.tasks.SimpleBuildStep delegate,
org.jenkinsci.plugins.workflow.steps.StepContext context)
Copyright © 2016–2017. All rights reserved.