Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/buildmaster/log.php
diff options
context:
space:
mode:
Diffstat (limited to 'buildmaster/log.php')
-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";