Parsed

data class Parsed(val stages: List<LazyPipelineStage>? = null, val errorUnits: List<ErrorUnit>? = null)

Results of parsing a config unit.

Constructors

Link copied to clipboard
constructor(errorUnit: ErrorUnit? = null)
constructor(stageBlock: Runner.Context.() -> PipelineStage)
constructor(stages: List<LazyPipelineStage>? = null, errorUnits: List<ErrorUnit>? = null)

Properties

Link copied to clipboard
val errorUnits: List<ErrorUnit>? = null

list of ErrorUnit.ConfigErrorUnit and/or ErrorUnit.ContextErrorUnit encountered. The implementer of parse needs to return any problems with the usage of this stage as ErrorUnit.ConfigErrorUnit or ErrorUnit.ContextErrorUnit. For example, if this stage depends on whether of not another stage is used in the config yaml as well, throw a config error by adding the error unit to this list if it violated this contract.

Link copied to clipboard

list of lazy pipeline stages, to be used for building the entire pipeline.

Functions

Link copied to clipboard