* hydra: added variant of build input type, 'build output (same system)' to allow better continous integration in one jobset for multiple system. it makes sure that the system of the build that is passed as input for a job has the same system as the job.
This commit is contained in:
@ -14,7 +14,7 @@ use Config::General;
|
||||
use Text::Table;
|
||||
use POSIX qw(strftime);
|
||||
use Net::Twitter::Lite;
|
||||
|
||||
use Data::Dump qw(dump);
|
||||
|
||||
STDOUT->autoflush();
|
||||
|
||||
@ -138,7 +138,7 @@ sub sendEmailNotification {
|
||||
push @lines,
|
||||
[ $input->name
|
||||
, $input->type
|
||||
, $input->type eq "build"
|
||||
, ( $input->type eq "build" || $input->type eq "sysbuild")
|
||||
? $input->dependency->id
|
||||
: ($input->type eq "string" || $input->type eq "boolean")
|
||||
? $input->value : ($input->uri . ':' . $input->revision)
|
||||
|
@ -13,7 +13,7 @@ use Email::Simple;
|
||||
use Email::Simple::Creator;
|
||||
use Sys::Hostname::Long;
|
||||
use Config::General;
|
||||
|
||||
use Data::Dump qw(dump);
|
||||
|
||||
STDOUT->autoflush();
|
||||
|
||||
@ -24,8 +24,15 @@ sub fetchInputs {
|
||||
my ($project, $jobset, $inputInfo) = @_;
|
||||
foreach my $input ($jobset->jobsetinputs->all) {
|
||||
foreach my $alt ($input->jobsetinputalts->all) {
|
||||
my $info = fetchInput($db, $project, $jobset, $input->name, $input->type, $alt->value);
|
||||
push @{$$inputInfo{$input->name}}, $info if defined $info;
|
||||
if($input->type eq "sysbuild") {
|
||||
my @info = fetchInput($db, $project, $jobset, $input->name, $input->type, $alt->value);
|
||||
foreach my $info_el (@info) {
|
||||
push @{$$inputInfo{$input->name}}, $info_el if defined $info_el;
|
||||
}
|
||||
} else {
|
||||
my $info = fetchInput($db, $project, $jobset, $input->name, $input->type, $alt->value);
|
||||
push @{$$inputInfo{$input->name}}, $info if defined $info;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user