index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-01-03 20:38:05 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-01-03 20:38:13 +0100 |
commit | 9304c1abb31580f29f341a43ec8e01f28f9b1269 (patch) | |
tree | 243e73c98ddad55d71847ded2eea2c5743c3f137 /buildmaster | |
parent | e185c0c4d3fff5cc5de297a38f4b7d9d55f29ae0 (diff) |
-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"; |