public abstract class RunResolver extends Object implements ExtensionPoint
Run
from a Queue.Executable
Modifier and Type | Class and Description |
---|---|
static class |
RunResolver.ImplementsRun
Standard implementation of
RunResolver that resolves the case where the Queue.Executable
implements Run |
static class |
RunResolver.WorkflowPlaceholderTask
Pipeline specific implementation of
RunResolver |
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
RunResolver() |
Modifier and Type | Method and Description |
---|---|
static Optional<Run<?,?>> |
resolve(Queue.Executable executable)
Resolves a
Queue.Executable into the Run that it belongs to. |
protected abstract Run<?,?> |
runOf(Queue.Executable executable)
Attempts to resolve the run from the executable.
|
@CheckForNull protected abstract Run<?,?> runOf(@NonNull Queue.Executable executable)
executable
- the executable.null
@NonNull public static Optional<Run<?,?>> resolve(@NonNull Queue.Executable executable)
Queue.Executable
into the Run
that it belongs to.executable
- the executable.Optional.empty()
.Copyright © 2016–2019. All rights reserved.