forked from lix-project/hydra
Merge pull request #1116 from DeterminateSystems/project-jobset/input-type-build
Project jobset: update input type "build"
This commit is contained in:
commit
9d3b14dd43
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue