Package se.diabol.jenkins.pipeline.flow
Class StageRestart
java.lang.Object
se.diabol.jenkins.pipeline.flow.StageRestart
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
DeclarativeStageRestart
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<StageRestart> all()abstract voidSchedules a run that restarts the given run from the named stage.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.
-
Constructor Details
-
StageRestart
public StageRestart()
-
-
Method Details
-
restartableStages
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
-