pipelineDB.GetDashboardReturns(db.Dashboard{ { Job: job, JobConfig: jobs[0], NextBuild: &db.Build{ ID: 3, Name: "2", JobName: "job-1", PipelineName: "another-pipeline", Status: db.StatusStarted, }, FinishedBuild: &db.Build{ ID: 1, Name: "1", JobName: "job-1", PipelineName: "another-pipeline", Status: db.StatusSucceeded, StartTime: time.Unix(1, 0), EndTime: time.Unix(100, 0), }, }, { Job: job, JobConfig: jobs[1], NextBuild: nil, FinishedBuild: &db.Build{ ID: 4, Name: "1", JobName: "job-2", PipelineName: "another-pipeline", Status: db.StatusSucceeded, StartTime: time.Unix(101, 0), EndTime: time.Unix(200, 0), }, }, { Job: job, JobConfig: jobs[2], NextBuild: nil, FinishedBuild: nil, }, }, groups, nil)