This commit is contained in:
Eelco Dolstra 2009-03-18 17:13:13 +00:00
parent 702da969a6
commit b39e2c5e32

View file

@ -156,7 +156,7 @@ sub fetchInputAlt {
# Pick the most recent successful build of the specified job.
(my $prevBuild) = $db->resultset('Builds')->search(
{finished => 1, project => $project->name, jobset => $jobset->name, job => $jobName, buildStatus => 0},
{join => 'resultInfo', order_by => "id DESC", rows => 1});
{join => 'resultInfo', order_by => "me.id DESC", rows => 1});
if (!defined $prevBuild || !isValidPath($prevBuild->outpath)) {
print STDERR "no previous build available for `$jobName'";