StageResult

sealed class StageResult

The result of a pipeline stage.

The following table shows the allowed output-input combinations in a pipeline. "Default" refers to stage results which are neither DontCare or Undefined:

| Output \ Input | Default | DontCare | Undefined |  Any  |
| Default | == | OK | Error | Error |
| DontCare | Error | Error | Error | Error |
| Undefined | Error | OK | Error | Error |
| Any | Error | OK | Error | OK |

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
data class Any(val obj: Any?) : StageResult

StageResult indicating that the stage emits/accepts an object of a arbitrary type.

Link copied to clipboard

StageResult indicating that the stage does not care about its input.

Link copied to clipboard
annotation class ExperimentalAnyResultType

Annotation class marking StageResult.Any and its related methods as opt-in, because they are not intended for normal use.

Link copied to clipboard
data class HostPath(val hostPath: Path) : StageResult
Link copied to clipboard

StageResult indicating that the stage does not output anything of meaningful value.

Link copied to clipboard
data class URL(val url: URL) : StageResult
Link copied to clipboard
data class Volume(val volume: EnvVolume) : StageResult

Functions

Link copied to clipboard

Converts this into a StageResult.Any instance.

Link copied to clipboard

Casts this into the stage result type of OutT, or throws IllegalArgumentException if the conversion is not possible.

Link copied to clipboard

Casts this into the stage result type of outClazz.