opendevstack / ods-pipeline

Alternative ODS CI/CD pipeline based on Tekton / OpenShift Pipelines
Apache License 2.0
13 stars 5 forks source link

`runAfter: [start]` not set for parallel tasks #671

Closed michaelsauter closed 1 year ago

michaelsauter commented 1 year ago

https://github.com/opendevstack/ods-pipeline/blob/4a8716535d51acb099a81b6619c4c2f747896f77/internal/manager/pipeline.go#L147 only sets runAfter for the first task, however it should be set for each task that does not have runAfter set until there is one which has it set.

A typical case is that there are 2 build tasks that can run in parallel after start. None of those would have runAfter set, but both should have it set.

FYI @oalyman