I should test first
This commit is contained in:
parent
dcc570f454
commit
854513be8e
|
@ -80,7 +80,7 @@ rec {
|
||||||
done
|
done
|
||||||
''; # */
|
''; # */
|
||||||
|
|
||||||
LOGNAME="$USER";
|
LOGNAME = "foo";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Build of Hydra on ${system}";
|
description = "Build of Hydra on ${system}";
|
||||||
|
|
|
@ -368,7 +368,7 @@ sub doBuild {
|
||||||
$stopTime = time();
|
$stopTime = time();
|
||||||
|
|
||||||
if ($res != 0) {
|
if ($res != 0) {
|
||||||
if ($thisBuildFailed && $res == 100) { $buildStatus = 1; }
|
if ($thisBuildFailed && $res == 100 << 8) { $buildStatus = 1; }
|
||||||
elsif ($someBuildFailed) { $buildStatus = 2; }
|
elsif ($someBuildFailed) { $buildStatus = 2; }
|
||||||
else { $buildStatus = 3; }
|
else { $buildStatus = 3; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,9 @@ sub evalSucceeds {
|
||||||
|
|
||||||
sub runBuild {
|
sub runBuild {
|
||||||
my ($build) = @_;
|
my ($build) = @_;
|
||||||
return captureStdoutStderr(60, ("../src/script/hydra-build", $build->id));
|
my ($res, $stdout, $stderr) = captureStdoutStderr(60, ("../src/script/hydra-build", $build->id));
|
||||||
|
print "STDERR: $stderr" if $res;
|
||||||
|
return ($res, $stdout, $stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub updateRepository {
|
sub updateRepository {
|
||||||
|
|
Loading…
Reference in a new issue