Uses of Class
org.jenkinsci.plugins.workflow.steps.StepContext
-
Uses of StepContext in org.jenkinsci.plugins.workflow.steps
Modifier and TypeMethodDescriptionstatic StepExecution
StepExecutions.block
(StepContext context, StepExecutions.BlockBody body) Creates a block-scoped execution allowing various initial actions includingBodyInvoker.withContext(java.lang.Object)
.void
StepEnvironmentContributor.buildEnvironmentFor
(StepContext stepContext, EnvVars envs, TaskListener listener) Contributes environment variables used for a workflow step.void
StepExecutions.BlockBody.call
(StepContext context, BodyInvoker invoker) StepExecutions.SynchronousBody.call
(StepContext context) void
StepExecutions.SynchronousBodyVoid.call
(StepContext context) final void
StepDescriptor.checkContextAvailability
(StepContext c) Makes sure that the givenStepContext
has all the context parameters this descriptor wants to see, and if not, throwMissingContextVariableException
indicating which variable is missing.protected abstract void
BodyExecutionCallback.TailCall.finished
(StepContext context) Called when the body is finished.protected abstract void
GeneralNonBlockingStepExecution.TailCall.finished
(StepContext context) Called when the body is finished.static EnvVars
EnvironmentExpander.getEffectiveEnvironment
(EnvVars customEnvironment, EnvVars contextualEnvironment, EnvironmentExpander expander, StepContext stepContext, TaskListener listener) Computes an effective environment in a given context.abstract void
BodyExecutionCallback.onFailure
(StepContext context, Throwable t) Notifies that the body execution has aborted abnormally.void
BodyExecutionCallback.TailCall.onFailure
(StepContext context, Throwable t) final void
GeneralNonBlockingStepExecution.TailCall.onFailure
(StepContext context, Throwable t) void
BodyExecutionCallback.onStart
(StepContext context) Notifies that the body execution has started.abstract void
BodyExecutionCallback.onSuccess
(StepContext context, Object result) Notifies that the body execution has completed successfully.final void
BodyExecutionCallback.TailCall.onSuccess
(StepContext context, Object result) final void
GeneralNonBlockingStepExecution.TailCall.onSuccess
(StepContext context, Object result) protected static com.google.inject.Injector
AbstractStepImpl.prepareInjector
(StepContext context, Step step) AbstractStepImpl.start
(StepContext context) Constructs a step execution automatically according toAbstractStepDescriptorImpl.getExecutionType()
.abstract StepExecution
Step.start
(StepContext context) Start execution of something and report the end result back to the given callback.static StepExecution
StepExecutions.synchronous
(StepContext context, StepExecutions.SynchronousBody body) Creates aSynchronousStepExecution
running a given block with a return value.static StepExecution
StepExecutions.synchronousNonBlocking
(StepContext context, StepExecutions.SynchronousBody body) Creates aSynchronousNonBlockingStepExecution
running a given block with a return value.static StepExecution
StepExecutions.synchronousNonBlockingVoid
(StepContext context, StepExecutions.SynchronousBodyVoid body) Creates aSynchronousNonBlockingStepExecution
running a given block.static StepExecution
StepExecutions.synchronousVoid
(StepContext context, StepExecutions.SynchronousBodyVoid body) Creates aSynchronousStepExecution
running a given block.ModifierConstructorDescriptionprotected
AbstractStepExecutionImpl
(StepContext context) Constructor for compatibility.protected
Deprecated.protected
Deprecated.protected
protected
StepExecution
(StepContext context) If manually created,StepContext
must be passed in.protected
protected
SynchronousStepExecution
(StepContext context)