hydra: at evaluation, check if path is already built, and mark as built in stead of adding to the queue.

This commit is contained in:
Rob Vermaas
2010-09-01 10:50:57 +00:00
parent 2e02291092
commit d7487ab0d9
2 changed files with 38 additions and 16 deletions

View File

@ -83,7 +83,7 @@ sub sendEmailNotification {
die unless defined $build->resultInfo;
return if ! ( $build->jobset->enableemail && ($build->maintainers neq "" || $build->jobset->emailoverride neq "") );
return if ! ( $build->jobset->enableemail && ($build->maintainers ne "" || $build->jobset->emailoverride ne "") );
# Do we want to send mail?
@ -376,13 +376,7 @@ sub doBuild {
txn_do($db, sub {
$build->update({finished => 1, timestamp => time});
my $releaseName;
if (-e "$outPath/nix-support/hydra-release-name") {
open FILE, "$outPath/nix-support/hydra-release-name" or die;
$releaseName = <FILE>;
chomp $releaseName;
close FILE;
}
my $releaseName = getReleaseName($outPath);
$db->resultset('BuildResultInfo')->create(
{ id => $build->id