From 9304c1abb31580f29f341a43ec8e01f28f9b1269 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 3 Jan 2020 20:38:05 +0100 Subject: buildmaster/log.php: add filter by exit-code --- buildmaster/log.php | 4 ++++ 1 file changed, 4 insertions(+) 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"; -- cgit v1.2.3-70-g09d2