Class BuildNumberRunSelector
java.lang.Object
hudson.model.AbstractDescribableImpl<RunSelector>
org.jenkinsci.plugins.runselector.RunSelector
org.jenkinsci.plugins.runselector.selectors.AbstractSpecificRunSelector
org.jenkinsci.plugins.runselector.selectors.BuildNumberRunSelector
- All Implemented Interfaces:
ExtensionPoint,Describable<RunSelector>
Select the run based on its build number.
- Author:
- Alexandru Somai
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRun<?, ?> getBuild(Job<?, ?> job, RunSelectorContext context) Override this method to implementAbstractSpecificRunSelector.Methods inherited from class org.jenkinsci.plugins.runselector.selectors.AbstractSpecificRunSelector
getNextBuildMethods inherited from class org.jenkinsci.plugins.runselector.RunSelector
getDisplayName, selectMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
BuildNumberRunSelector
-
-
Method Details
-
getBuildNumber
-
getBuild
@CheckForNull public Run<?,?> getBuild(@NonNull Job<?, ?> job, @NonNull RunSelectorContext context) throws IOExceptionDescription copied from class:AbstractSpecificRunSelectorOverride this method to implementAbstractSpecificRunSelector.- Specified by:
getBuildin classAbstractSpecificRunSelector- Parameters:
job- the job to pick a build from.context- context for the current execution of runselector.- Returns:
- the build to select
- Throws:
IOException- if an error occurs while performing the operation.
-