Class FallbackRunSelector
java.lang.Object
hudson.model.AbstractDescribableImpl<RunSelector>
org.jenkinsci.plugins.runselector.RunSelector
org.jenkinsci.plugins.runselector.selectors.FallbackRunSelector
- All Implemented Interfaces:
ExtensionPoint,Describable<RunSelector>
Tries multiple selectors consequently.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
ConstructorsConstructorDescriptionFallbackRunSelector(List<FallbackRunSelector.Entry> entryList) FallbackRunSelector(RunSelector... runSelectors) Convenient constructor. -
Method Summary
Methods inherited from class org.jenkinsci.plugins.runselector.RunSelector
getDisplayName, getNextBuildMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
FallbackRunSelector
@DataBoundConstructor public FallbackRunSelector(@NonNull List<FallbackRunSelector.Entry> entryList) - Parameters:
entryList- run selector to try
-
FallbackRunSelector
Convenient constructor.- Parameters:
runSelectors- run selector to try
-
-
Method Details
-
getEntryList
- Returns:
- run selector to try
-
select
@CheckForNull public Run<?,?> select(@NonNull Job<?, ?> job, @NonNull RunSelectorContext context) throws IOException, InterruptedException- Overrides:
selectin classRunSelector- Parameters:
job- the job to pick a build from.context- context for the current execution of runselector.- Returns:
- the build matches this selectors and conditions stored in the context.
- Throws:
IOException- if an error occurs while performing the operation.InterruptedException- if any thread interrupts the current thread.
-