forked from lix-project/hydra
Keep builds that failed with output
The user may want to look at the output, so they shouldn't be GC'ed right away.
This commit is contained in:
parent
d16738e130
commit
46f8b25c1f
|
@ -93,7 +93,7 @@ foreach my $project ($db->resultset('Projects')->search({}, { order_by => ["name
|
||||||
$project->name, ":", $jobset->name, "\n";
|
$project->name, ":", $jobset->name, "\n";
|
||||||
|
|
||||||
keepBuild $_ foreach $jobset->builds->search(
|
keepBuild $_ foreach $jobset->builds->search(
|
||||||
{ finished => 1, buildStatus => 0
|
{ finished => 1, buildStatus => { -in => [0, 6] }
|
||||||
, id => { -in =>
|
, id => { -in =>
|
||||||
\ [ "select build from JobsetEvalMembers where eval in (select id from JobsetEvals where project = ? and jobset = ? and hasNewBuilds = 1 order by id desc limit ?)",
|
\ [ "select build from JobsetEvalMembers where eval in (select id from JobsetEvals where project = ? and jobset = ? and hasNewBuilds = 1 order by id desc limit ?)",
|
||||||
[ '', $project->name ], [ '', $jobset->name ], [ '', $keepnr ] ] }
|
[ '', $project->name ], [ '', $jobset->name ], [ '', $keepnr ] ] }
|
||||||
|
|
Loading…
Reference in a new issue