Class SimpleBuildStepExecution
- java.lang.Object
-
- org.jenkinsci.plugins.workflow.steps.StepExecution
-
- org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution<Void>
-
- com.microsoft.jenkins.azurecommons.command.SimpleBuildStepExecution
-
- All Implemented Interfaces:
Serializable
public class SimpleBuildStepExecution extends org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution<Void>
Provides the basic implementation ofStepExecution
which can be used to implement theStep.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 fromStep
. For the context descriptor, it should extends fromStepDescriptor
and itsgetRequiredContext()
should return at leastREQUIRED_CONTEXT
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.collect.ImmutableSet<? extends Class<?>>
REQUIRED_CONTEXT
-
Constructor Summary
Constructors Constructor Description SimpleBuildStepExecution(SimpleBuildStep delegate, org.jenkinsci.plugins.workflow.steps.StepContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getStatus()
protected Void
run()
-
Methods inherited from class org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution
blocksRestart, onResume, start, stop
-
-
-
-
Field Detail
-
REQUIRED_CONTEXT
public static final com.google.common.collect.ImmutableSet<? extends Class<?>> REQUIRED_CONTEXT
-
-
Constructor Detail
-
SimpleBuildStepExecution
public SimpleBuildStepExecution(SimpleBuildStep delegate, org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-