Share pipeline module and reference target selection
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
type PipelineLayout struct {
|
||||
ID string
|
||||
ExplicitSteps bool
|
||||
Profile PipelineProfile
|
||||
Steps []PipelineLayoutStep
|
||||
ConfiguredLaneIDs []string
|
||||
}
|
||||
@@ -41,7 +42,7 @@ func LayoutPipeline(profile PipelineProfile) (PipelineLayout, error) {
|
||||
if explicit && len(steps) == 0 {
|
||||
return PipelineLayout{}, fmt.Errorf("pipeline %q must declare at least one ordered step", id)
|
||||
}
|
||||
layout := PipelineLayout{ID: id, ExplicitSteps: explicit}
|
||||
layout := PipelineLayout{ID: id, ExplicitSteps: explicit, Profile: profile}
|
||||
seenSteps := make(map[string]struct{}, len(steps))
|
||||
seenLanes := make(map[string]string)
|
||||
for index, step := range steps {
|
||||
|
||||
Reference in New Issue
Block a user