public class SystemGroovyChoiceListProvider extends ChoiceListProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
SystemGroovyChoiceListProvider.ConverterImpl |
static class |
SystemGroovyChoiceListProvider.DescriptorImpl
The internal class to work with views.
|
| Constructor and Description |
|---|
SystemGroovyChoiceListProvider(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript groovyScript,
String defaultChoice,
boolean usePredefinedVariables)
Constructor instantiating with parameters in the configuration page.
|
SystemGroovyChoiceListProvider(String scriptText,
String defaultChoice) |
SystemGroovyChoiceListProvider(String scriptText,
String defaultChoice,
boolean usePredefinedVariables) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getChoiceList()
Returns the list of choices the user specified in the job configuration page.
|
String |
getDefaultChoice()
Returns the default choice.
|
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript |
getGroovyScript() |
protected hudson.model.Job<?,?> |
getProject()
Return the project where this is configured.
|
String |
getScriptText()
Deprecated.
|
boolean |
isUsePredefinedVariables() |
protected void |
setProject(hudson.model.AbstractProject<?,?> project)
Deprecated.
|
protected void |
setProject(hudson.model.Job<?,?> project) |
all, onBuildCompletedWithValue, onBuildTriggeredWithValue@DataBoundConstructor
public SystemGroovyChoiceListProvider(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript groovyScript,
String defaultChoice,
boolean usePredefinedVariables)
groovyScript - defaultChoice - usePredefinedVariables - public SystemGroovyChoiceListProvider(String scriptText, String defaultChoice, boolean usePredefinedVariables)
public List<String> getChoiceList()
getChoiceList in class ChoiceListProviderChoiceListProvider.getChoiceList()@Deprecated public String getScriptText()
getGroovyScript()public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getGroovyScript()
public String getDefaultChoice()
getDefaultChoice in class ChoiceListProviderChoiceListProvider.getDefaultChoice()public boolean isUsePredefinedVariables()
protected void setProject(hudson.model.Job<?,?> project)
project - @Deprecated protected void setProject(hudson.model.AbstractProject<?,?> project)
protected hudson.model.Job<?,?> getProject()
isUsePredefinedVariables() is true.Copyright © 2016–2017. All rights reserved.