Interface StepListener
- All Superinterfaces:
ExtensionPoint
StepListeners are fired before invoking a step but after the FlowNode has been created and the
StepContext has been populated. A StepListener can perform actions before the Step is
executed, such as calling FutureCallback.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
Modifier and TypeMethodDescriptionvoidnotifyOfNewStep(org.jenkinsci.plugins.workflow.steps.Step step, org.jenkinsci.plugins.workflow.steps.StepContext context)
-
Method Details
-
notifyOfNewStep
void notifyOfNewStep(@NonNull org.jenkinsci.plugins.workflow.steps.Step step, @NonNull org.jenkinsci.plugins.workflow.steps.StepContext context) Called before aStepis invoked, but after itsFlowNodeandStepContexthave been created. Listeners can make the step fail by callingFutureCallback.onFailure(java.lang.Throwable).
-