Class FlowDefinition
java.lang.Object
hudson.model.AbstractDescribableImpl<FlowDefinition>
org.jenkinsci.plugins.workflow.flow.FlowDefinition
- All Implemented Interfaces:
- ExtensionPoint,- Describable<FlowDefinition>
public abstract class FlowDefinition
extends AbstractDescribableImpl<FlowDefinition>
implements ExtensionPoint
Actual executable script.
- Author:
- Kohsuke Kawaguchi, Jesse Glick
- 
Nested Class SummaryNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreate(FlowExecutionOwner handle, TaskListener listener, List<? extends Action> actions) Starts a brand new execution of this definition from the beginning.create(FlowExecutionOwner handle, List<? extends Action> actions) Deprecated.Collection<? extends SCM>getSCMs()Returns a list of allSCMsthat are part of the static configuration of theFlowDefinition.
- 
Constructor Details- 
FlowDefinitionpublic FlowDefinition()
 
- 
- 
Method Details- 
createpublic FlowExecution create(FlowExecutionOwner handle, TaskListener listener, List<? extends Action> actions) throws Exception Starts a brand new execution of this definition from the beginning.- Parameters:
- actions- Additional parameters to how
- Throws:
- Exception
 
- 
create@Deprecated public FlowExecution create(FlowExecutionOwner handle, List<? extends Action> actions) throws IOException Deprecated.- Throws:
- IOException
 
- 
getDescriptor- Specified by:
- getDescriptorin interface- Describable<FlowDefinition>
 
- 
getSCMsReturns a list of allSCMsthat are part of the static configuration of theFlowDefinition. Subclasses ofFlowDefinitionmay override this method to return statically configured SCMs that they may be aware of. For example,CpsScmFlowDefinitionreturns SCM used to retrieve Jenkinsfile. Does not include any SCMs used dynamically during Pipeline execution. May be empty (or not overridden) if the Pipeline does not include any statically configured SCMs. This method is used inWorkflowJobclass which will combine lists of static and dynamic SCMs.
 
-