Class ParameterizedRunSelector
java.lang.Object
hudson.model.AbstractDescribableImpl<RunSelector>
org.jenkinsci.plugins.runselector.RunSelector
org.jenkinsci.plugins.runselector.selectors.ParameterizedRunSelector
- All Implemented Interfaces:
ExtensionPoint,Describable<RunSelector>
Use a parameter to specify how the build is selected.
- Author:
- Alan Harder
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jenkinsci.plugins.runselector.RunSelector
getDisplayName, getNextBuildMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
ParameterizedRunSelector
-
-
Method Details
-
getParameterName
-
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.
-