Class ExtendedSCMBinder
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.flow.FlowDefinition>
org.jenkinsci.plugins.workflow.flow.FlowDefinition
org.jenkinsci.plugins.workflow.multibranch.extended.scm.ExtendedSCMBinder
- All Implemented Interfaces:
ExtensionPoint,Describable<org.jenkinsci.plugins.workflow.flow.FlowDefinition>
public class ExtendedSCMBinder
extends org.jenkinsci.plugins.workflow.flow.FlowDefinition
This class consist of necessary methods for binding another Jenkins file from another repository to Multibranch pipeline.
- Author:
- Aytunc BEKEN, aytuncbeken.ab@gmail.com
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescriptor Implementation forFlowDefinitionDescriptor.static classThis method hides Remote Jenkins Plugin from other Pipeline Jobs and make visible to only MultiBranch PipelineNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jenkinsci.plugins.workflow.flow.FlowExecutioncreate(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner handle, TaskListener listener, List<? extends Action> actions) Overwrites create method of FlowDefinition class.booleanMethods inherited from class org.jenkinsci.plugins.workflow.flow.FlowDefinition
create, getDescriptor, getSCMs
-
Constructor Details
-
ExtendedSCMBinder
public ExtendedSCMBinder(String remoteJenkinsFile, SCM remoteJenkinsFileSCM, String scmSourceBranchName, boolean matchBranches, String fallbackBranch, String originJenkinsFileDefinition, Boolean lookupInParameters, String localMarker) Constructor for the class.- Parameters:
remoteJenkinsFile- Path of the remote jenkins file from Remote Jenkins File Plugin descriptorremoteJenkinsFileSCM- SCM definition from Remote Jenkins File Plugin descriptor
-
-
Method Details
-
create
public org.jenkinsci.plugins.workflow.flow.FlowExecution create(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner handle, TaskListener listener, List<? extends Action> actions) throws Exception Overwrites create method of FlowDefinition class. This methods sets the defined Jenkins file and defined SCM on Remote Jenkins Plugin to Pipeline job which will be created by MultiBranch Pipeline.- Overrides:
createin classorg.jenkinsci.plugins.workflow.flow.FlowDefinition- Parameters:
handle-FlowExecutionOwnerlistener-TaskListeneractions- List ofAction- Returns:
FlowExecution- Throws:
Exception
-
getRemoteJenkinsFileSCM
-
getRemoteJenkinsFile
-
getRemoteJenkinsFileBranch
-
isMatchBranches
public boolean isMatchBranches() -
getLocalMarker
-