B:BD[
5.10585] → [
10.81:177]
∅:D[
10.177] → [
5.10684:10710]
B:BD[
5.10684] → [
5.10684:10710]
B:BD[
5.10710] → [
10.178:233]
B:BD[
10.266] → [
10.266:305]
∅:D[
10.305] → [
5.10841:11075]
B:BD[
5.10841] → [
5.10841:11075]
foreach my $build ($builds->search({},
{group_by => ['project', 'job', 'system']}))
{
my $attrs =
{ project => $build->get_column('project')
, job => $build->get_column('job')
, system => $build->system
, finished => 1
};
my ($build) = $builds->search({ %$attrs, %$extraAttrs },
{ join => 'resultInfo', order_by => 'timestamp DESC', rows => 1 } );
push @res, $build if defined $build;
# !!! this could be done more efficiently.
foreach my $job (ref $jobs eq "ARRAY" ? @{$jobs} : $jobs->all) {
foreach my $system ($job->builds->search({}, {select => ['system'], distinct => 1})) {
my ($build) = $job->builds->search(
{ finished => 1, system => $system->system, %$extraAttrs },
{ join => 'resultInfo', order_by => 'timestamp DESC', rows => 1 });
push @res, $build if defined $build;
}