Interface StepListener

  • All Superinterfaces:
    ExtensionPoint

    public interface StepListener
    extends 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.
    • Method Detail

      • notifyOfNewStep

        void notifyOfNewStep​(@NonNull
                             org.jenkinsci.plugins.workflow.steps.Step step,
                             @NonNull
                             org.jenkinsci.plugins.workflow.steps.StepContext context)
        Called before a Step is invoked, but after its FlowNode and StepContext have been created. Listeners can make the step fail by calling FutureCallback.onFailure(java.lang.Throwable).