groupByKindLazy
fun groupByKindLazy(lazyPipeline: List<Pair<PipelineStage.Kind, LazyPipelineStage>>): Map<PipelineStage.Kind, List<LazyPipelineStage>>
Groups a list of LazyPipelineStage by their PipelineStage.Kind.
Return
A Map containing each PipelineStage.Kind mapped to a list of PipelineStage of the kind. Note that not all types may be present in the map, so always use List.orEmpty when retrieving the list of stages.
Parameters
lazyPipeline
The pipeline to transform.