Branch: refs/heads/master
Home: https://github.com/NixOS/hydra
Commit: dcc570f45422a7d94073e012fca108b03bb11457
https://github.com/NixOS/hydra/commit/dcc570f45422a7d94073e012fca108b03bb11457
Author: Eelco Dolstra <[email protected]>
Date: 2012-04-30 (Mon, 30 Apr 2012)
Changed paths:
M src/script/hydra-build
Log Message:
-----------
Set the build status properly for failing local builds
If a build has ‘preferLocalBuilds = true’ (or we're not using remote
building), and the build has a non-permanent failure, then the build
status should be "Aborted" rather than "Failed". This is denoted by
an exit status of 100 from nix-store.
diff --git a/src/script/hydra-build b/src/script/hydra-build
index e5db81b..41a4458 100755
--- a/src/script/hydra-build
+++ b/src/script/hydra-build
@@ -368,7 +368,7 @@ sub doBuild {
$stopTime = time();
if ($res != 0) {
- if ($thisBuildFailed) { $buildStatus = 1; }
+ if ($thisBuildFailed && $res == 100) { $buildStatus = 1; }
elsif ($someBuildFailed) { $buildStatus = 2; }
else { $buildStatus = 3; }
}
================================================================
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits