Class PromotedBuildParameterDefinition
java.lang.Object
hudson.model.ParameterDefinition
hudson.model.SimpleParameterDefinition
hudson.plugins.promoted_builds.parameters.PromotedBuildParameterDefinition
- All Implemented Interfaces:
- ExtensionPoint,- Describable<ParameterDefinition>,- Serializable
Defines a parameter that allows the user to select a promoted build
 from a drop down list.
 
 Remarks on addressing: 
 Starting from TODO, the field also supports folders and the relative addressing (JENKINS-25011). 
 See ItemPathResolver.getByPath(java.lang.String, hudson.model.Item, java.lang.Class) 
 for the documentation.
 
- Author:
- Pete Hayes
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class hudson.model.ParameterDefinitionParameterDefinition.ParameterDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFields inherited from class hudson.model.ParameterDefinitionLIST
- 
Constructor SummaryConstructorsConstructorDescriptionPromotedBuildParameterDefinition(String name, String jobName, String process, String description) 
- 
Method SummaryModifier and TypeMethodDescriptioncopyWithDefaultValue(ParameterValue defaultValue) createValue(String value) createValue(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject jo) Deprecated.Absolute path to the item starting from the root element.Gets a list of promoted builds for the project.Methods inherited from class hudson.model.SimpleParameterDefinitioncreateValue, createValueMethods inherited from class hudson.model.ParameterDefinitionall, createValue, createValue, equals, getDescription, getDescriptor, getFormattedDescription, getName, getType, hashCode, isValid, setDescription
- 
Constructor Details- 
PromotedBuildParameterDefinition
 
- 
- 
Method Details- 
createValuepublic PromotedBuildParameterValue createValue(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject jo) - Overrides:
- createValuein class- ParameterDefinition
 
- 
createValue- Specified by:
- createValuein class- SimpleParameterDefinition
 
- 
getDefaultParameterValue- Overrides:
- getDefaultParameterValuein class- ParameterDefinition
 
- 
copyWithDefaultValue- Overrides:
- copyWithDefaultValuein class- ParameterDefinition
 
- 
getJobNameAbsolute path to the item starting from the root element.
- 
getProcess
- 
getBuildsDeprecated.This method retrieves the base item for relative addressing from theStaplerRequest2. The relative addressing may be malfunctional if you use this method outsideStaplerRequest2s. UsegetRuns(hudson.model.Item)insteadGets a list of promoted builds for the project.- Returns:
- List of AbstractBuilds, which have been promoted
 
- 
getRunsGets a list of promoted builds for the project.- Parameters:
- base- Base item for the relative addressing
- Returns:
- List of AbstractBuilds, which have been promoted. May return an empty list ifJenkinsinstance is not ready
- Since:
- 2.22
 
 
- 
StaplerRequest2.