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 localFile,
String remoteJenkinsFile,
SCM remoteJenkinsFileSCM,
Boolean matchBranches)
Jenkins @
DataBoundConstructor |
| Modifier and Type | Method and Description |
|---|---|
protected void |
customize(org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject project) |
String |
getLocalFile()
Default getter method
|
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 |
setLocalFileForReconize(String localFileForRecognize)
Jenkins @
DataBoundSetter |
void |
setMatchBranches(boolean matchBranches)
Jenkins @
DataBoundSetter |
void |
setRemoteJenkinsFile(String remoteJenkinsFile)
Jenkins @
DataBoundSetter |
void |
setRemoteJenkinsFileSCM(SCM remoteJenkinsFileSCM)
Jenkins @
DataBoundSetter |
void |
setScmSourceBranchName(String scmSourceBranchName)
Set @this.scmSourceBranchName to be used in new scm definition with new branch name
|
doCreateProject, updateExistingProjectcreateNewProject, recognizes, recognizescreateProject@DataBoundConstructor public RemoteJenkinsFileWorkflowMultiBranchProjectFactory(String localFile, String remoteJenkinsFile, 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(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 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()
Copyright © 2016–2019. All rights reserved.