Interface StepListener
- All Superinterfaces:
ExtensionPoint
StepListener
s 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 TypeMethodDescriptionvoid
notifyOfNewStep
(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 aStep
is invoked, but after itsFlowNode
andStepContext
have been created. Listeners can make the step fail by callingFutureCallback.onFailure(java.lang.Throwable)
.
-