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 +}