forked from lix-project/hydra
hydra: only use keepnr to determine if builds should be kept
This commit is contained in:
parent
9d9bf8b264
commit
7bd11b87f0
|
@ -34,11 +34,11 @@ sub keepBuild {
|
|||
|
||||
# Go over all projects.
|
||||
|
||||
foreach my $project ($db->resultset('Projects')->search({hidden => 0},{})) {
|
||||
foreach my $project ($db->resultset('Projects')->all) {
|
||||
|
||||
# Go over all jobs in this project.
|
||||
|
||||
foreach my $job ($project->jobs->search({hidden => 0}, { join => "jobset"})) {
|
||||
foreach my $job ($project->jobs->all) {
|
||||
print STDERR "*** looking for builds to keep in job ",
|
||||
$project->name, ":", $job->jobset->name, ":", $job->name, "\n";
|
||||
|
||||
|
|
Loading…
Reference in a new issue