Package io.jenkins.plugins.pipeline
Class PipelineAsYamlScmFlowDefinition
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.flow.FlowDefinition>
org.jenkinsci.plugins.workflow.flow.FlowDefinition
io.jenkins.plugins.pipeline.PipelineAsYamlScmFlowDefinition
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.flow.FlowDefinition>
public class PipelineAsYamlScmFlowDefinition
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
ConstructorDescriptionPipelineAsYamlScmFlowDefinition
(String yamlJenkinsFilePath, SCM yamlJenkinsFileScm, boolean lightweight) 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
setLightweight
(boolean lightweight) void
setYamlJenkinsFilePath
(String yamlJenkinsFilePath) void
setYamlJenkinsFileScm
(SCM yamlJenkinsFileScm) Methods inherited from class org.jenkinsci.plugins.workflow.flow.FlowDefinition
create, getDescriptor, getSCMs
-
Constructor Details
-
PipelineAsYamlScmFlowDefinition
@DataBoundConstructor public PipelineAsYamlScmFlowDefinition(String yamlJenkinsFilePath, SCM yamlJenkinsFileScm, boolean lightweight) Constructor- Parameters:
yamlJenkinsFilePath
- Pipeline As Yaml File path in SCMyamlJenkinsFileScm
- SCM Definitionlightweight
- LightWeight Checkout Flag
-
-
Method Details
-
getYamlJenkinsFilePath
-
setYamlJenkinsFilePath
-
getYamlJenkinsFileScm
-
setYamlJenkinsFileScm
-
isLightweight
public boolean isLightweight() -
setLightweight
@DataBoundSetter public void setLightweight(boolean lightweight) -
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
-