Package io.jenkins.plugins.pipeline
Class PipelineAsYamlScriptFlowDefinition
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.flow.FlowDefinition>
org.jenkinsci.plugins.workflow.flow.FlowDefinition
io.jenkins.plugins.pipeline.PipelineAsYamlScriptFlowDefinition
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.flow.FlowDefinition>
public class PipelineAsYamlScriptFlowDefinition
extends org.jenkinsci.plugins.workflow.flow.FlowDefinition
SCM Binder class for
WorkflowBranchProjectFactory
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Extension forFlowDefinitionDescriptor
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionPipelineAsYamlScriptFlowDefinition
(String yamlJenkinsScript, boolean sandbox) Constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.jenkinsci.plugins.workflow.flow.FlowExecution
create
(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner handle, TaskListener listener, List<? extends Action> actions) boolean
void
setSandbox
(boolean sandbox) void
setYamlJenkinsScript
(String yamlJenkinsScript) Methods inherited from class org.jenkinsci.plugins.workflow.flow.FlowDefinition
create, getDescriptor, getSCMs
-
Constructor Details
-
PipelineAsYamlScriptFlowDefinition
@DataBoundConstructor public PipelineAsYamlScriptFlowDefinition(String yamlJenkinsScript, boolean sandbox) Constructor- Parameters:
yamlJenkinsScript
- Pipeline As Yaml Scriptsandbox
- Sandbox flag
-
-
Method Details
-
getYamlJenkinsScript
-
setYamlJenkinsScript
-
isSandbox
public boolean isSandbox() -
setSandbox
@DataBoundSetter public void setSandbox(boolean sandbox) -
create
public org.jenkinsci.plugins.workflow.flow.FlowExecution create(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner handle, TaskListener listener, List<? extends Action> actions) throws Exception - Overrides:
create
in classorg.jenkinsci.plugins.workflow.flow.FlowDefinition
- Throws:
Exception
-