public abstract class ChoiceListProvider extends hudson.model.AbstractDescribableImpl<ChoiceListProvider> implements hudson.ExtensionPoint, Serializable
| Constructor and Description |
|---|
ChoiceListProvider() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.DescriptorExtensionList<ChoiceListProvider,hudson.model.Descriptor<ChoiceListProvider>> |
all()
Returns all the ChoiceListProvider subclass whose DescriptorImpl is annotated with Extension.
|
abstract List<String> |
getChoiceList()
Returns the choices.
|
String |
getDefaultChoice()
Returns the default choice value.
|
void |
onBuildCompletedWithValue(hudson.model.AbstractBuild<?,?> build,
ExtensibleChoiceParameterDefinition def,
String value)
Called when a build is completed
Implementations can override this method, and do custom behavior.
|
void |
onBuildTriggeredWithValue(hudson.model.AbstractProject<?,?> job,
ExtensibleChoiceParameterDefinition def,
String value)
Called when a build is triggered
Implementations can override this method, and do custom behavior.
|
boolean |
requiresBuildPermission()
Checks if access
getChoiceList() from REST API needs the Item.BUILD permission. |
public abstract List<String> getChoiceList()
public String getDefaultChoice()
public void onBuildTriggeredWithValue(hudson.model.AbstractProject<?,?> job,
ExtensibleChoiceParameterDefinition def,
String value)
job - the job with which this choice provider is used.def - the parameter definition the value specifiedvalue - the value specified.public void onBuildCompletedWithValue(hudson.model.AbstractBuild<?,?> build,
ExtensibleChoiceParameterDefinition def,
String value)
build - the build with which this choice provider is used.def - the parameter definition the value specifiedvalue - the value specified.public boolean requiresBuildPermission()
getChoiceList() from REST API needs the Item.BUILD permission.
If true this will currently return the choices only for Job based API calls.public static hudson.DescriptorExtensionList<ChoiceListProvider,hudson.model.Descriptor<ChoiceListProvider>> all()
Copyright © 2016–2021. All rights reserved.