groupByKind

Groups a list of PipelineStage 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

pipeline

The pipeline to transform.