public class PipelineBranchDefaultsProjectFactory
extends org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory
Jenkinsfile.| Modifier and Type | Class and Description |
|---|---|
static class |
PipelineBranchDefaultsProjectFactory.DescriptorImpl |
org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory.AbstractWorkflowBranchProjectFactoryDescriptor| Constructor and Description |
|---|
PipelineBranchDefaultsProjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected org.jenkinsci.plugins.workflow.flow.FlowDefinition |
createDefinition() |
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.
|
getBranch, isProject, newInstance, setBranchpublic static final String SCRIPT
@DataBoundConstructor public PipelineBranchDefaultsProjectFactory()
@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.flow.FlowDefinition createDefinition()
createDefinition in class org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactoryprotected jenkins.scm.api.SCMSourceCriteria getSCMSourceCriteria(jenkins.scm.api.SCMSource source)
getSCMSourceCriteria in class org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactoryCopyright © 2016–2019. All rights reserved.