Class StatusRunSelector
java.lang.Object
hudson.model.AbstractDescribableImpl<RunSelector>
org.jenkinsci.plugins.runselector.RunSelector
org.jenkinsci.plugins.runselector.selectors.StatusRunSelector
- All Implemented Interfaces:
ExtensionPoint,Describable<RunSelector>
Select build based on the specific status build.
- Author:
- Alan Harder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the display name for this selector.Run<?, ?> getNextBuild(Job<?, ?> job, RunSelectorContext context) Override this method to implementRunSelector.Methods inherited from class org.jenkinsci.plugins.runselector.RunSelector
selectMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
StatusRunSelector
public StatusRunSelector() -
StatusRunSelector
@DataBoundConstructor public StatusRunSelector(@CheckForNull StatusRunSelector.BuildStatus buildStatus) - Parameters:
buildStatus- build status of the build to select
-
-
Method Details
-
getBuildStatus
- Returns:
- build status to select
-
getNextBuild
@CheckForNull public Run<?,?> getNextBuild(@NonNull Job<?, ?> job, @NonNull RunSelectorContext context) Override this method to implementRunSelector. UseRunSelectorContext.getLastMatchBuild()to continue enumerating builds. Or you can save the execution state withRunSelectorContext.addExtension(Object)- Overrides:
getNextBuildin classRunSelector- Parameters:
job- the job to pick a build from.context- context for the current execution of runselector.- Returns:
- the build matches this selector.
-
getDisplayName
Returns the display name for this selector. You can override this to output configurations of this selector in verbose logs.- Overrides:
getDisplayNamein classRunSelector- Returns:
- the display name for this selector.
-