Class CpsFlowDefinition
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.flow.FlowDefinition>
org.jenkinsci.plugins.workflow.flow.FlowDefinition
org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.flow.FlowDefinition>
public class CpsFlowDefinition
extends org.jenkinsci.plugins.workflow.flow.FlowDefinition
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionCpsFlowDefinition
(String script) Deprecated.CpsFlowDefinition
(String script, boolean sandbox) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner owner, TaskListener listener, List<? extends Action> actions) boolean
Methods inherited from class org.jenkinsci.plugins.workflow.flow.FlowDefinition
create, getDescriptor, getSCMs
-
Constructor Details
-
CpsFlowDefinition
Deprecated.useCpsFlowDefinition(String, boolean)
instead- Throws:
Descriptor.FormException
-
CpsFlowDefinition
@DataBoundConstructor public CpsFlowDefinition(String script, boolean sandbox) throws Descriptor.FormException - Throws:
Descriptor.FormException
-
-
Method Details
-
getScript
-
isSandbox
public boolean isSandbox() -
create
public CpsFlowExecution create(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner handle, Action... actions) throws IOException - Throws:
IOException
-
create
public CpsFlowExecution create(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner owner, TaskListener listener, List<? extends Action> actions) throws IOException - Overrides:
create
in classorg.jenkinsci.plugins.workflow.flow.FlowDefinition
- Throws:
IOException
-
CpsFlowDefinition(String, boolean)
instead