Class PipelineMultiBranchDefaultsProjectFactory
java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.branch.MultiBranchProjectFactory>
jenkins.branch.MultiBranchProjectFactory
jenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteria
org.jenkinsci.plugins.pipeline.multibranch.defaults.PipelineMultiBranchDefaultsProjectFactory
- All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.branch.MultiBranchProjectFactory>
public class PipelineMultiBranchDefaultsProjectFactory
extends jenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteria
Recognizes and builds by default
Jenkinsfile.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class jenkins.branch.MultiBranchProjectFactory
jenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteriaNested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProjectprotected 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.voidupdateExistingProject(jenkins.branch.MultiBranchProject<?, ?> project, Map<String, Object> attributes, TaskListener listener) Methods inherited from class jenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteria
createNewProject, recognizes, recognizesMethods inherited from class jenkins.branch.MultiBranchProjectFactory
createProject, getDescriptor
-
Field Details
-
SCRIPT
- See Also:
-
-
Constructor Details
-
PipelineMultiBranchDefaultsProjectFactory
@DataBoundConstructor public PipelineMultiBranchDefaultsProjectFactory()
-
-
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.
-
doCreateProject
-
updateExistingProject
public void updateExistingProject(jenkins.branch.MultiBranchProject<?, ?> project, Map<String, throws IOException, InterruptedExceptionObject> attributes, TaskListener listener) - Overrides:
updateExistingProjectin classjenkins.branch.MultiBranchProjectFactory- Throws:
IOExceptionInterruptedException
-
getSCMSourceCriteria
protected jenkins.scm.api.SCMSourceCriteria getSCMSourceCriteria(jenkins.scm.api.SCMSource source) - Specified by:
getSCMSourceCriteriain classjenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteria
-