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 extendsAbstractWorkflowMultiBranchProjectFactory
to 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 class
RemoteJenkinsFileWorkflowMultiBranchProjectFactory.DescriptorImpl
Descriptor 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 void
customize(org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject project)
String
getFallbackBranch()
String
getLocalMarker()
Default getter methodBoolean
getLookupInParameters()
boolean
getMatchBranches()
Default getter methodString
getRemoteJenkinsFile()
Default getter methodSCM
getRemoteJenkinsFileSCM()
Default getter methodString
getScmSourceBranchName()
Default getter methodprotected jenkins.scm.api.SCMSourceCriteria
getSCMSourceCriteria(jenkins.scm.api.SCMSource source)
ExtendsWorkflowBranchProjectFactory
void
setFallbackBranch(String fallbackBranch)
void
setLocalMarkerForReconize(String localMarkerForRecognize)
JenkinsDataBoundSetter
void
setLookupInParameters(Boolean lookupInParameters)
void
setMatchBranches(boolean matchBranches)
JenkinsDataBoundSetter
void
setRemoteJenkinsFile(String remoteJenkinsFile)
JenkinsDataBoundSetter
void
setRemoteJenkinsFileSCM(SCM remoteJenkinsFileSCM)
JenkinsDataBoundSetter
void
setScmSourceBranchName(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
-SCM
definition 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
-SCM
definition 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:
getSCMSourceCriteria
in 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:
customize
in 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)
-
-