From 2d750a32c3a9f38373474d9b41eea22ddce08579 Mon Sep 17 00:00:00 2001 From: Edmond Godwin <113196109+edmondgodwin@users.noreply.github.com> Date: Thu, 16 Feb 2023 05:30:34 +0100 Subject: [PATCH] Update filterLogs.groovy --- vars/filterLogs.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/filterLogs.groovy b/vars/filterLogs.groovy index 4c1779c..c876bc0 100644 --- a/vars/filterLogs.groovy +++ b/vars/filterLogs.groovy @@ -6,6 +6,6 @@ def call(String filter_string, int occurrence) { def logs = currentBuild.rawBuild.getLog(10000).join('\n') int count = StringUtils.countMatches(logs, filter_string); if (count > occurrence -1) { - currentBuild.result='UNSTABLE' + currentBuild.result='ABORTED' } -} \ No newline at end of file +}