Class PipelineBranchDefaultsProjectFactory
java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.branch.BranchProjectFactory<?,?>>
jenkins.branch.BranchProjectFactory<org.jenkinsci.plugins.workflow.job.WorkflowJob, org.jenkinsci.plugins.workflow.job.WorkflowRun>
org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory
org.jenkinsci.plugins.pipeline.multibranch.defaults.PipelineBranchDefaultsProjectFactory
- All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.branch.BranchProjectFactory<?,?>>, Saveable
public class PipelineBranchDefaultsProjectFactory
extends org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory
Recognizes and builds by default
Jenkinsfile.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory
org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory.AbstractWorkflowBranchProjectFactoryDescriptorNested classes/interfaces inherited from class jenkins.branch.BranchProjectFactory
jenkins.branch.BranchProjectFactory.HeadByItemImpl, jenkins.branch.BranchProjectFactory.SourceByItemImplNested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jenkinsci.plugins.workflow.flow.FlowDefinitionprotected jenkins.scm.api.SCMSourceCriteriagetSCMSourceCriteria(jenkins.scm.api.SCMSource source) Get the script ID which will be used to read the Jenkinsfile from config file management.booleanGet the current setting for whether or not to use a groovy sandbox.voidsetScriptId(String scriptId) Set the script ID which will be used to reference the config file management for the contents of a Jenkinsfile.voidsetUseSandbox(boolean useSandbox) Set whether or not a Jenkinsfile should run within a Groovy sandbox.Methods inherited from class org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory
getBranch, isProject, newInstance, setBranchMethods inherited from class jenkins.branch.BranchProjectFactory
asProject, decorate, getDescriptor, getLastSeenRevision, getOwner, getProjectClass, getRevision, save, setLastSeenRevisionHash, setOwner, setRevisionHash
-
Field Details
-
SCRIPT
- See Also:
-
-
Constructor Details
-
PipelineBranchDefaultsProjectFactory
@DataBoundConstructor public PipelineBranchDefaultsProjectFactory()
-
-
Method Details
-
setScriptId
Set the script ID which will be used to reference the config file management for the contents of a Jenkinsfile.- Parameters:
scriptId- The ID of the groovy script to read as a Jenkinsfile.
-
getScriptId
Get the script ID which will be used to read the Jenkinsfile from config file management.- Returns:
- The Jenkinsfile script ID.
-
setUseSandbox
@DataBoundSetter public void setUseSandbox(boolean useSandbox) Set whether or not a Jenkinsfile should run within a Groovy sandbox.- Parameters:
useSandbox- Set true to enable Groovy sandbox or false to run in Jenkins master runtime.
-
getUseSandbox
public boolean getUseSandbox()Get the current setting for whether or not to use a groovy sandbox.- Returns:
- true if using a groovy sandbox is desired.
-
createDefinition
protected org.jenkinsci.plugins.workflow.flow.FlowDefinition createDefinition()- Specified by:
createDefinitionin classorg.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory
-
getSCMSourceCriteria
protected jenkins.scm.api.SCMSourceCriteria getSCMSourceCriteria(jenkins.scm.api.SCMSource source) - Specified by:
getSCMSourceCriteriain classorg.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory
-