public class RemoteJenkinsFileWorkflowMultiBranchProjectFactory
extends org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowMultiBranchProjectFactory
AbstractWorkflowMultiBranchProjectFactory to inject defined Jenkins file and repository in
Remote Jenkins File Plugin| Modifier and Type | Class and Description |
|---|---|
static class |
RemoteJenkinsFileWorkflowMultiBranchProjectFactory.DescriptorImpl
Descriptor Implementation for
RemoteJenkinsFileWorkflowMultiBranchProjectFactory |
org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowMultiBranchProjectFactory.PerFolderAdderjenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteriaExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
RemoteJenkinsFileWorkflowMultiBranchProjectFactory(String localMarker,
String remoteJenkinsFile,
SCM remoteJenkinsFileSCM,
Boolean matchBranches,
Boolean lookupInParameters)
Jenkins
DataBoundConstructor |
| Modifier and Type | Method and Description |
|---|---|
protected void |
customize(org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject project) |
String |
getFallbackBranch() |
String |
getLocalMarker()
Default getter method
|
Boolean |
getLookupInParameters() |
boolean |
getMatchBranches()
Default getter method
|
String |
getRemoteJenkinsFile()
Default getter method
|
SCM |
getRemoteJenkinsFileSCM()
Default getter method
|
String |
getScmSourceBranchName()
Default getter method
|
protected jenkins.scm.api.SCMSourceCriteria |
getSCMSourceCriteria(jenkins.scm.api.SCMSource source)
Extends
WorkflowBranchProjectFactory |
void |
setFallbackBranch(String fallbackBranch) |
void |
setLocalMarkerForReconize(String localMarkerForRecognize)
Jenkins
DataBoundSetter |
void |
setLookupInParameters(Boolean lookupInParameters) |
void |
setMatchBranches(boolean matchBranches)
Jenkins
DataBoundSetter |
void |
setRemoteJenkinsFile(String remoteJenkinsFile)
Jenkins
DataBoundSetter |
void |
setRemoteJenkinsFileSCM(SCM remoteJenkinsFileSCM)
Jenkins
DataBoundSetter |
void |
setScmSourceBranchName(String scmSourceBranchName)
Set scmSourceBranchName to be used in new scm definition with new branch nameLocal
|
doCreateProject, updateExistingProjectcreateNewProject, recognizes, recognizescreateProject@DataBoundConstructor public RemoteJenkinsFileWorkflowMultiBranchProjectFactory(String localMarker, String remoteJenkinsFile, SCM remoteJenkinsFileSCM, Boolean matchBranches, Boolean lookupInParameters)
DataBoundConstructorremoteJenkinsFile - path of the JenkinsfileremoteJenkinsFileSCM - SCM definition for the Jenkinsfilepublic Boolean getLookupInParameters()
@DataBoundSetter public void setLookupInParameters(Boolean lookupInParameters)
@DataBoundSetter public void setRemoteJenkinsFile(String remoteJenkinsFile)
DataBoundSetterremoteJenkinsFile - path of the Jenkinsfile@DataBoundSetter public void setRemoteJenkinsFileSCM(SCM remoteJenkinsFileSCM)
DataBoundSetterremoteJenkinsFileSCM - SCM definition for the Jenkinsfile@DataBoundSetter public void setLocalMarkerForReconize(String localMarkerForRecognize)
DataBoundSetterlocalMarkerForRecognize - file to search in local repository to activate build ( can be null )protected jenkins.scm.api.SCMSourceCriteria getSCMSourceCriteria(@NonNull jenkins.scm.api.SCMSource source)
WorkflowBranchProjectFactorygetSCMSourceCriteria in class jenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteriasource - SCMSourceSCMSourceCriteriapublic String getRemoteJenkinsFile()
public SCM getRemoteJenkinsFileSCM()
public String getLocalMarker()
protected void customize(org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject project)
customize in class org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowMultiBranchProjectFactory@DataBoundSetter public void setMatchBranches(boolean matchBranches)
DataBoundSettermatchBranches - True to enable match branches featurepublic boolean getMatchBranches()
public void setScmSourceBranchName(String scmSourceBranchName)
scmSourceBranchName - Current branch name which MultiBranch pipeline working on.public String getScmSourceBranchName()
public String getFallbackBranch()
@DataBoundSetter public void setFallbackBranch(String fallbackBranch)
Copyright © 2016–2021. All rights reserved.