Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/buildmaster
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-03 20:38:05 +0100
committerErich Eckner <git@eckner.net>2020-01-03 20:38:13 +0100
commit9304c1abb31580f29f341a43ec8e01f28f9b1269 (patch)
tree243e73c98ddad55d71847ded2eea2c5743c3f137 /buildmaster
parente185c0c4d3fff5cc5de297a38f4b7d9d55f29ae0 (diff)
buildmaster/log.php: add filter by exit-code
Diffstat (limited to 'buildmaster')
-rw-r--r--buildmaster/log.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildmaster/log.php b/buildmaster/log.php
index 0653632..9e4e520 100644
--- a/buildmaster/log.php
+++ b/buildmaster/log.php
@@ -23,6 +23,10 @@ abort_iff_webspider();
$filter .= " AND `ssh_log`.`parameters` LIKE from_base64(\"" . base64_encode($_GET["parameters"] . "%") . "\")";
if (array_key_exists("slave", $_GET))
$filter .= " AND `build_slaves`.`name` LIKE from_base64(\"" . base64_encode($_GET["slave"] . "%") . "\")";
+ if (array_key_exists("success", $_GET))
+ $filter .= " AND `ssh_log`.`exit_code`=0";
+ if (array_key_exists("failure", $_GET))
+ $filter .= " AND `ssh_log`.`exit_code`!=0";
} elseif (array_key_exists("show", $_GET) &&
($_GET["show"] == "command")) {
$to_show = "command";