Class RemoteJenkinsFileWorkflowMultiBranchProjectFactory
java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.branch.MultiBranchProjectFactory>
jenkins.branch.MultiBranchProjectFactory
jenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteria
org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowMultiBranchProjectFactory
org.jenkinsci.plugins.workflow.multibranch.extended.RemoteJenkinsFileWorkflowMultiBranchProjectFactory
- All Implemented Interfaces:
ExtensionPoint,Describable<jenkins.branch.MultiBranchProjectFactory>
public class RemoteJenkinsFileWorkflowMultiBranchProjectFactory
extends org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowMultiBranchProjectFactory
This class extends
AbstractWorkflowMultiBranchProjectFactory to inject defined Jenkins file and repository in
Remote Jenkins File Plugin- Author:
- Julien Roy, julien.vanroy@gmail.com
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescriptor Implementation forRemoteJenkinsFileWorkflowMultiBranchProjectFactoryNested classes/interfaces inherited from class org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowMultiBranchProjectFactory
org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowMultiBranchProjectFactory.PerFolderAdderNested classes/interfaces inherited from class jenkins.branch.MultiBranchProjectFactory
jenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteriaNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcustomize(org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject project) Default getter methodbooleanDefault getter methodDefault getter methodDefault getter methodDefault getter methodprotected jenkins.scm.api.SCMSourceCriteriagetSCMSourceCriteria(jenkins.scm.api.SCMSource source) ExtendsWorkflowBranchProjectFactoryvoidsetFallbackBranch(String fallbackBranch) voidsetLocalMarkerForReconize(String localMarkerForRecognize) JenkinsDataBoundSettervoidsetLookupInParameters(Boolean lookupInParameters) voidsetMatchBranches(boolean matchBranches) JenkinsDataBoundSettervoidsetRemoteJenkinsFile(String remoteJenkinsFile) JenkinsDataBoundSettervoidsetRemoteJenkinsFileSCM(SCM remoteJenkinsFileSCM) JenkinsDataBoundSettervoidsetScmSourceBranchName(String scmSourceBranchName) Set scmSourceBranchName to be used in new scm definition with new branch nameLocalMethods inherited from class org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowMultiBranchProjectFactory
doCreateProject, updateExistingProjectMethods inherited from class jenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteria
createNewProject, recognizes, recognizesMethods inherited from class jenkins.branch.MultiBranchProjectFactory
createProject, getDescriptor
-
Constructor Details
-
RemoteJenkinsFileWorkflowMultiBranchProjectFactory
@DataBoundConstructor public RemoteJenkinsFileWorkflowMultiBranchProjectFactory(String localMarker, String remoteJenkinsFile, SCM remoteJenkinsFileSCM, Boolean matchBranches, Boolean lookupInParameters) JenkinsDataBoundConstructor- Parameters:
remoteJenkinsFile- path of the JenkinsfileremoteJenkinsFileSCM-SCMdefinition for the Jenkinsfile
-
-
Method Details
-
getLookupInParameters
-
setLookupInParameters
-
setRemoteJenkinsFile
JenkinsDataBoundSetter- Parameters:
remoteJenkinsFile- path of the Jenkinsfile
-
setRemoteJenkinsFileSCM
JenkinsDataBoundSetter- Parameters:
remoteJenkinsFileSCM-SCMdefinition for the Jenkinsfile
-
setLocalMarkerForReconize
JenkinsDataBoundSetter- Parameters:
localMarkerForRecognize- file to search in local repository to activate build ( can be null )
-
getSCMSourceCriteria
protected jenkins.scm.api.SCMSourceCriteria getSCMSourceCriteria(@NonNull jenkins.scm.api.SCMSource source) ExtendsWorkflowBranchProjectFactory- Specified by:
getSCMSourceCriteriain classjenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteria- Parameters:
source-SCMSource- Returns:
SCMSourceCriteria
-
getRemoteJenkinsFile
Default getter method- Returns:
- remoteJenkinsFile
-
getRemoteJenkinsFileSCM
Default getter method- Returns:
- remoteJenkinsFile
-
getLocalMarker
Default getter method- Returns:
- localMarker
-
customize
protected void customize(org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject project) - Overrides:
customizein classorg.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowMultiBranchProjectFactory
-
setMatchBranches
@DataBoundSetter public void setMatchBranches(boolean matchBranches) JenkinsDataBoundSetter- Parameters:
matchBranches- True to enable match branches feature
-
getMatchBranches
public boolean getMatchBranches()Default getter method- Returns:
- matchBranches
-
setScmSourceBranchName
Set scmSourceBranchName to be used in new scm definition with new branch nameLocal- Parameters:
scmSourceBranchName- Current branch name which MultiBranch pipeline working on.
-
getScmSourceBranchName
Default getter method- Returns:
- scmSourceBranchName
-
getFallbackBranch
-
setFallbackBranch
-