Uses of Class
org.jenkinsci.plugins.workflow.steps.StepContext
Packages that use StepContext
-
Uses of StepContext in org.jenkinsci.plugins.workflow.steps
Methods in org.jenkinsci.plugins.workflow.steps that return StepContextMethods in org.jenkinsci.plugins.workflow.steps with parameters of type StepContextModifier and TypeMethodDescriptionstatic ThrowableFailureHandler.apply(StepContext ctx, Throwable t) Looks up in the current context for aFailureHandlerand runs it against the givenThrowable.static StepExecutionStepExecutions.block(StepContext context, StepExecutions.BlockBody body) Creates a block-scoped execution allowing various initial actions includingBodyInvoker.withContext(java.lang.Object).voidStepEnvironmentContributor.buildEnvironmentFor(StepContext stepContext, EnvVars envs, TaskListener listener) Contributes environment variables used for a workflow step.voidStepExecutions.BlockBody.call(StepContext context, BodyInvoker invoker) StepExecutions.SynchronousBody.call(StepContext context) voidStepExecutions.SynchronousBodyVoid.call(StepContext context) final voidStepDescriptor.checkContextAvailability(StepContext c) Makes sure that the givenStepContexthas all the context parameters this descriptor wants to see, and if not, throwMissingContextVariableExceptionindicating which variable is missing.protected abstract voidBodyExecutionCallback.TailCall.finished(StepContext context) Called when the body is finished.protected abstract voidGeneralNonBlockingStepExecution.TailCall.finished(StepContext context) Called when the body is finished.static EnvVarsEnvironmentExpander.getEffectiveEnvironment(EnvVars customEnvironment, EnvVars contextualEnvironment, EnvironmentExpander expander, StepContext stepContext, TaskListener listener) Computes an effective environment in a given context.FailureHandler.handle(StepContext ctx, Throwable t) Intercept the suppliedThrowable.abstract voidBodyExecutionCallback.onFailure(StepContext context, Throwable t) Notifies that the body execution has aborted abnormally.voidBodyExecutionCallback.TailCall.onFailure(StepContext context, Throwable t) final voidGeneralNonBlockingStepExecution.TailCall.onFailure(StepContext context, Throwable t) voidBodyExecutionCallback.onStart(StepContext context) Notifies that the body execution has started.abstract voidBodyExecutionCallback.onSuccess(StepContext context, Object result) Notifies that the body execution has completed successfully.final voidBodyExecutionCallback.TailCall.onSuccess(StepContext context, Object result) final voidGeneralNonBlockingStepExecution.TailCall.onSuccess(StepContext context, Object result) protected static com.google.inject.InjectorAbstractStepImpl.prepareInjector(StepContext context, Step step) AbstractStepImpl.start(StepContext context) Constructs a step execution automatically according toAbstractStepDescriptorImpl.getExecutionType().abstract StepExecutionStep.start(StepContext context) Start execution of something and report the end result back to the given callback.static StepExecutionStepExecutions.synchronous(StepContext context, StepExecutions.SynchronousBody body) Creates aSynchronousStepExecutionrunning a given block with a return value.static StepExecutionStepExecutions.synchronousNonBlocking(StepContext context, StepExecutions.SynchronousBody body) Creates aSynchronousNonBlockingStepExecutionrunning a given block with a return value.static StepExecutionStepExecutions.synchronousNonBlockingVoid(StepContext context, StepExecutions.SynchronousBodyVoid body) Creates aSynchronousNonBlockingStepExecutionrunning a given block.static StepExecutionStepExecutions.synchronousVoid(StepContext context, StepExecutions.SynchronousBodyVoid body) Creates aSynchronousStepExecutionrunning a given block.Constructors in org.jenkinsci.plugins.workflow.steps with parameters of type StepContextModifierConstructorDescriptionprotectedAbstractStepExecutionImpl(StepContext context) Constructor for compatibility.protectedDeprecated.protectedDeprecated.protectedprotectedStepExecution(StepContext context) If manually created,StepContextmust be passed in.protectedprotectedSynchronousStepExecution(StepContext context)