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.AbstractWorkflowMultiBranchProjectFactoryThis class extendsAbstractWorkflowMultiBranchProjectFactoryto inject defined Jenkins file and repository in Remote Jenkins File Plugin- Author:
- Julien Roy, julien.vanroy@gmail.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRemoteJenkinsFileWorkflowMultiBranchProjectFactory.DescriptorImplDescriptor Implementation forRemoteJenkinsFileWorkflowMultiBranchProjectFactory-
Nested classes/interfaces inherited from class org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowMultiBranchProjectFactory
org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowMultiBranchProjectFactory.PerFolderAdder
-
Nested classes/interfaces inherited from class jenkins.branch.MultiBranchProjectFactory
jenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteria
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcustomize(org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject project)StringgetFallbackBranch()StringgetLocalMarker()Default getter methodBooleangetLookupInParameters()booleangetMatchBranches()Default getter methodStringgetRemoteJenkinsFile()Default getter methodSCMgetRemoteJenkinsFileSCM()Default getter methodStringgetScmSourceBranchName()Default 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 nameLocal-
Methods inherited from class org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowMultiBranchProjectFactory
doCreateProject, updateExistingProject
-
-
-
-
Constructor Detail
-
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 Detail
-
getLookupInParameters
public Boolean getLookupInParameters()
-
setLookupInParameters
@DataBoundSetter public void setLookupInParameters(Boolean lookupInParameters)
-
setRemoteJenkinsFile
@DataBoundSetter public void setRemoteJenkinsFile(String remoteJenkinsFile)
JenkinsDataBoundSetter- Parameters:
remoteJenkinsFile- path of the Jenkinsfile
-
setRemoteJenkinsFileSCM
@DataBoundSetter public void setRemoteJenkinsFileSCM(SCM remoteJenkinsFileSCM)
JenkinsDataBoundSetter- Parameters:
remoteJenkinsFileSCM-SCMdefinition for the Jenkinsfile
-
setLocalMarkerForReconize
@DataBoundSetter public void setLocalMarkerForReconize(String localMarkerForRecognize)
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
public String getRemoteJenkinsFile()
Default getter method- Returns:
- remoteJenkinsFile
-
getRemoteJenkinsFileSCM
public SCM getRemoteJenkinsFileSCM()
Default getter method- Returns:
- remoteJenkinsFile
-
getLocalMarker
public String 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
public void setScmSourceBranchName(String scmSourceBranchName)
Set scmSourceBranchName to be used in new scm definition with new branch nameLocal- Parameters:
scmSourceBranchName- Current branch name which MultiBranch pipeline working on.
-
getScmSourceBranchName
public String getScmSourceBranchName()
Default getter method- Returns:
- scmSourceBranchName
-
getFallbackBranch
public String getFallbackBranch()
-
setFallbackBranch
@DataBoundSetter public void setFallbackBranch(String fallbackBranch)
-
-