From dcc570f45422a7d94073e012fca108b03bb11457 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 30 Apr 2012 17:15:35 +0200 Subject: [PATCH] Set the build status properly for failing local builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/script/hydra-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/hydra-build b/src/script/hydra-build index e5db81b9..41a4458e 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; } }