index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | buildmaster/log.php | 4 |
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"; |