public class PipelineMultiBranchDefaultsProjectFactory
extends jenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteria
Jenkinsfile
.Modifier and Type | Class and Description |
---|---|
static class |
PipelineMultiBranchDefaultsProjectFactory.DescriptorImpl |
static class |
PipelineMultiBranchDefaultsProjectFactory.PerFolderAdder |
Constructor and Description |
---|
PipelineMultiBranchDefaultsProjectFactory() |
Modifier and Type | Method and Description |
---|---|
protected org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject |
doCreateProject(hudson.model.ItemGroup<?> parent,
String name,
Map<String,Object> attributes) |
protected jenkins.scm.api.SCMSourceCriteria |
getSCMSourceCriteria(jenkins.scm.api.SCMSource source) |
String |
getScriptId()
Get the script ID which will be used to read the Jenkinsfile from config
file management.
|
boolean |
getUseSandbox()
Get the current setting for whether or not to use a groovy sandbox.
|
void |
setScriptId(String scriptId)
Set the script ID which will be used to reference the config file
management for the contents of a Jenkinsfile.
|
void |
setUseSandbox(boolean useSandbox)
Set whether or not a Jenkinsfile should run within a Groovy sandbox.
|
void |
updateExistingProject(jenkins.branch.MultiBranchProject<?,?> project,
Map<String,Object> attributes,
hudson.model.TaskListener listener) |
public static final String SCRIPT
@DataBoundConstructor public PipelineMultiBranchDefaultsProjectFactory()
@DataBoundSetter public void setScriptId(String scriptId)
scriptId
- The ID of the groovy script to read as a Jenkinsfile.public String getScriptId()
@DataBoundSetter public void setUseSandbox(boolean useSandbox)
useSandbox
- Set true to enable Groovy sandbox or false to run in
Jenkins master runtime.public boolean getUseSandbox()
protected org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject doCreateProject(hudson.model.ItemGroup<?> parent, String name, Map<String,Object> attributes)
doCreateProject
in class jenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteria
public void updateExistingProject(jenkins.branch.MultiBranchProject<?,?> project, Map<String,Object> attributes, hudson.model.TaskListener listener) throws IOException, InterruptedException
updateExistingProject
in class jenkins.branch.MultiBranchProjectFactory
IOException
InterruptedException
protected jenkins.scm.api.SCMSourceCriteria getSCMSourceCriteria(jenkins.scm.api.SCMSource source)
getSCMSourceCriteria
in class jenkins.branch.MultiBranchProjectFactory.BySCMSourceCriteria
Copyright © 2016–2019. All rights reserved.