public class SystemGroovyChoiceListProvider extends ChoiceListProvider implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
SystemGroovyChoiceListProvider.DescriptorImpl
The internal class to work with views.
|
| Constructor and Description |
|---|
SystemGroovyChoiceListProvider(String scriptText,
String defaultChoice) |
SystemGroovyChoiceListProvider(String scriptText,
String defaultChoice,
boolean usePredefinedVariables)
Constructor instantiating with parameters in the configuration page.
|
| 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.
|
protected hudson.model.AbstractProject<?,?> |
getProject()
Return the project where this is configured.
|
String |
getScriptText()
The list of choices, joined into a string.
|
boolean |
isUsePredefinedVariables() |
protected void |
setProject(hudson.model.AbstractProject<?,?> project) |
all, onBuildCompletedWithValue, onBuildTriggeredWithValue@DataBoundConstructor public SystemGroovyChoiceListProvider(String scriptText, String defaultChoice, boolean usePredefinedVariables)
scriptText - the text where choices are written in each line.defaultChoice - usePredefinedVariables - public List<String> getChoiceList()
getChoiceList in class ChoiceListProviderChoiceListProvider.getChoiceList()public String getScriptText()
public String getDefaultChoice()
getDefaultChoice in class ChoiceListProviderChoiceListProvider.getDefaultChoice()public boolean isUsePredefinedVariables()
protected void setProject(hudson.model.AbstractProject<?,?> project)
project - protected hudson.model.AbstractProject<?,?> getProject()
isUsePredefinedVariables() is true.Copyright © 2004-2015. All Rights Reserved.