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.PerFolderAdder| Constructor and Description |
|---|
RemoteJenkinsFileWorkflowMultiBranchProjectFactory(String localFile,
String remoteJenkinsFile,
hudson.scm.SCM remoteJenkinsFileSCM,
boolean matchBranches)
Jenkins @
DataBoundConstructor |
| Modifier and Type | Method and Description |
|---|---|
protected void |
customize(org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject project) |
String |
getFallbackBranch() |
String |
getLocalFile()
Default getter method
|
boolean |
getMatchBranches()
Default getter method
|
String |
getRemoteJenkinsFile()
Default getter method
|
hudson.scm.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 |
setLocalFileForReconize(String localFileForRecognize)
Jenkins @
DataBoundSetter |
void |
setMatchBranches(boolean matchBranches)
Jenkins @
DataBoundSetter |
void |
setRemoteJenkinsFile(String remoteJenkinsFile)
Jenkins @
DataBoundSetter |
void |
setRemoteJenkinsFileSCM(hudson.scm.SCM remoteJenkinsFileSCM)
Jenkins @
DataBoundSetter |
void |
setScmSourceBranchName(String scmSourceBranchName)
Set @this.scmSourceBranchName to be used in new scm definition with new branch nameLocal
|
doCreateProject, updateExistingProject@DataBoundConstructor public RemoteJenkinsFileWorkflowMultiBranchProjectFactory(String localFile, String remoteJenkinsFile, hudson.scm.SCM remoteJenkinsFileSCM, boolean matchBranches)
DataBoundConstructorremoteJenkinsFile - path of the JenkinsfileremoteJenkinsFileSCM - @SCM definition for the Jenkinsfile@DataBoundSetter public void setRemoteJenkinsFile(String remoteJenkinsFile)
DataBoundSetterremoteJenkinsFile - path of the Jenkinsfile@DataBoundSetter public void setRemoteJenkinsFileSCM(hudson.scm.SCM remoteJenkinsFileSCM)
DataBoundSetterremoteJenkinsFileSCM - @SCM definition for the Jenkinsfile@DataBoundSetter public void setLocalFileForReconize(String localFileForRecognize)
DataBoundSetterlocalFileForRecognize - file to search in local repository to activate build ( can be null )protected jenkins.scm.api.SCMSourceCriteria getSCMSourceCriteria(jenkins.scm.api.SCMSource source)
WorkflowBranchProjectFactorygetSCMSourceCriteria in class jenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteriasource - @SCMSourceSCMSourceCriteriapublic String getRemoteJenkinsFile()
public hudson.scm.SCM getRemoteJenkinsFileSCM()
public String getLocalFile()
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–2020. All rights reserved.