Class RestartFlowFactoryAction
- java.lang.Object
-
- hudson.model.InvisibleAction
-
- org.jenkinsci.plugins.pipeline.modeldefinition.actions.RestartFlowFactoryAction
-
- All Implemented Interfaces:
Action
,ModelObject
,Queue.QueueAction
,org.jenkinsci.plugins.workflow.cps.CpsFlowFactoryAction2
public class RestartFlowFactoryAction extends InvisibleAction implements org.jenkinsci.plugins.workflow.cps.CpsFlowFactoryAction2, Queue.QueueAction
-
-
Constructor Summary
Constructors Constructor Description RestartFlowFactoryAction(String originRunId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jenkinsci.plugins.workflow.cps.CpsFlowExecution
create(org.jenkinsci.plugins.workflow.flow.FlowDefinition def, org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner owner, List<? extends Action> actions)
String
getOriginRunId()
boolean
shouldSchedule(List<Action> actions)
Not allowing restart attempts to be collapsed into the same build.-
Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
-
-
-
Constructor Detail
-
RestartFlowFactoryAction
public RestartFlowFactoryAction(@NonNull String originRunId)
-
-
Method Detail
-
getOriginRunId
public String getOriginRunId()
-
shouldSchedule
public boolean shouldSchedule(List<Action> actions)
Not allowing restart attempts to be collapsed into the same build.- Specified by:
shouldSchedule
in interfaceQueue.QueueAction
-
create
public org.jenkinsci.plugins.workflow.cps.CpsFlowExecution create(org.jenkinsci.plugins.workflow.flow.FlowDefinition def, org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner owner, List<? extends Action> actions) throws IOException
- Specified by:
create
in interfaceorg.jenkinsci.plugins.workflow.cps.CpsFlowFactoryAction2
- Throws:
IOException
-
-