forked from lix-project/hydra
hydra: handle case where build to keep set to 0
This commit is contained in:
parent
91fe70522f
commit
0cee7c0909
|
@ -47,6 +47,11 @@ foreach my $project ($db->resultset('Projects')->all) {
|
|||
next;
|
||||
}
|
||||
|
||||
if ($keepnr <= 0 ) {
|
||||
print STDERR "*** jobset ", $project->name, ":", $jobset->name, " set to keep 0 builds\n";
|
||||
next;
|
||||
}
|
||||
|
||||
# Go over all jobs in this jobset.
|
||||
foreach my $job ($jobset->jobs->all) {
|
||||
print STDERR "*** looking for builds to keep in job ",
|
||||
|
|
Loading…
Reference in a new issue