Class StageRestart

java.lang.Object
se.diabol.jenkins.pipeline.flow.StageRestart
All Implemented Interfaces:
ExtensionPoint
Direct Known Subclasses:
DeclarativeStageRestart

public abstract class StageRestart extends Object implements ExtensionPoint
Restarts a finished Pipeline run from one of its top-level stages, for the flavours of Pipeline that support it. Declarative Pipeline does; the integration with it activates when that plugin is installed.
  • Constructor Details

    • StageRestart

      public StageRestart()
  • Method Details

    • restartableStages

      public abstract Set<String> restartableStages(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Names of the top-level stages the run can be restarted from by the current user; empty when it cannot.
    • restart

      public abstract void restart(org.jenkinsci.plugins.workflow.job.WorkflowRun run, String stageName) throws PipelineException
      Schedules a run that restarts the given run from the named stage.
      Throws:
      PipelineException
    • all

      public static ExtensionList<StageRestart> all()