hydra-eval-jobset: fixup old reference to project / jobset columns

This commit is contained in:
Graham Christensen 2022-01-09 09:50:55 -05:00
parent 2abcd84931
commit 8c3c573953

View file

@ -106,9 +106,17 @@ sub fetchInputBuild {
$projectName ||= $project->name; $projectName ||= $project->name;
$jobsetName ||= $jobset->name; $jobsetName ||= $jobset->name;
my $jobset = $db->resultset('Jobsets')->search(
{
name => $jobsetName,
project => $projectName,
},
{}
)->single;
# Pick the most recent successful build of the specified job. # Pick the most recent successful build of the specified job.
$prevBuild = $db->resultset('Builds')->search( $prevBuild = $db->resultset('Builds')->search(
{ finished => 1, project => $projectName, jobset => $jobsetName { finished => 1, jobset_id => $jobset->get_column('id')
, job => $jobName, buildStatus => 0 }, , job => $jobName, buildStatus => 0 },
{ order_by => "me.id DESC", rows => 1 { order_by => "me.id DESC", rows => 1
, where => \ attrsToSQL($attrs, "me.id") })->single; , where => \ attrsToSQL($attrs, "me.id") })->single;