public class RemoteJenkinsFileWorkflowBranchProjectFactory
extends org.jenkinsci.plugins.workflow.multibranch.WorkflowBranchProjectFactory
WorkflowBranchProjectFactory to inject defined Jenkins file and repository in
Remote Jenkins File Plugin| Modifier and Type | Class and Description |
|---|---|
static class |
RemoteJenkinsFileWorkflowBranchProjectFactory.DescriptorImpl
Descriptor Implementation for @
AbstractWorkflowMultiBranchProjectFactory |
org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory.AbstractWorkflowBranchProjectFactoryDescriptor| Constructor and Description |
|---|
RemoteJenkinsFileWorkflowBranchProjectFactory(String remoteJenkinsFile,
String localFile,
hudson.scm.SCM remoteJenkinsFileSCM,
boolean matchBranches,
String fallbackBranch)
Jenkins @
DataBoundConstructor |
| Modifier and Type | Method and Description |
|---|---|
protected org.jenkinsci.plugins.workflow.flow.FlowDefinition |
createDefinition()
Extends @
WorkflowBranchProjectFactory |
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 |
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 name
|
getScriptPath, readResolve, setScriptPathgetBranch, isProject, newInstance, setBranch@DataBoundConstructor public RemoteJenkinsFileWorkflowBranchProjectFactory(String remoteJenkinsFile, String localFile, hudson.scm.SCM remoteJenkinsFileSCM, boolean matchBranches, String fallbackBranch)
DataBoundConstructorlocalFile - path of an arbitrary local file which must be present for the project to be recognisedremoteJenkinsFile - 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 Jenkinsfileprotected org.jenkinsci.plugins.workflow.flow.FlowDefinition createDefinition()
WorkflowBranchProjectFactorycreateDefinition in class org.jenkinsci.plugins.workflow.multibranch.WorkflowBranchProjectFactoryFlowDefinitionprotected jenkins.scm.api.SCMSourceCriteria getSCMSourceCriteria(jenkins.scm.api.SCMSource source)
WorkflowBranchProjectFactorygetSCMSourceCriteria in class org.jenkinsci.plugins.workflow.multibranch.WorkflowBranchProjectFactorysource - @SCMSourceSCMSourceCriteriapublic String getRemoteJenkinsFile()
public hudson.scm.SCM getRemoteJenkinsFileSCM()
public String getLocalFile()
@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.