Interface StepListener
-
- All Superinterfaces:
ExtensionPoint
public interface StepListener extends ExtensionPoint
StepListener
s are fired before invoking a step but after theFlowNode
has been created and theStepContext
has been populated. AStepListener
can perform actions before theStep
is executed, such as callingFutureCallback.onFailure(java.lang.Throwable)
to make the step fail before it starts.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
notifyOfNewStep(org.jenkinsci.plugins.workflow.steps.Step step, org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-
-
Method Detail
-
notifyOfNewStep
void notifyOfNewStep(@NonNull org.jenkinsci.plugins.workflow.steps.Step step, @NonNull org.jenkinsci.plugins.workflow.steps.StepContext context)
Called before aStep
is invoked, but after itsFlowNode
andStepContext
have been created. Listeners can make the step fail by callingFutureCallback.onFailure(java.lang.Throwable)
.
-
-