Handle wait jobs in pipeline_performance
@@ -35,6 +35,10 @@ func (pp *PipelinePerformance) Collect() (data.DataSet, error) {
for _, build := range builds {
skippedTasks := getSkippedTasks(build)
for _, job := range build.Jobs {
+ if job.Name == nil {
+ continue
+ }
+
err := result.AddRow(pipeline.Org, pipeline.Slug, *build.Number, *job.Name, job.CreatedAt, getDifferenceSeconds(job.CreatedAt, job.StartedAt), getDifferenceSeconds(job.StartedAt, job.FinishedAt), skippedTasks)
if err != nil {
return nil, fmt.Errorf("Failed to add result for job %s of build %d: %v", *job.Name, *build.Number, err)
