From 31c979caece4f247b34477e6cab37158ea29eae4 Mon Sep 17 00:00:00 2001 From: Michael Kebe <michael.kebe@gmail.com> Date: Tue, 10 Sep 2024 08:26:04 +0000 Subject: [PATCH] fix: Add fail function. fixes #67 --- templates/gitlab-ci-maven.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/gitlab-ci-maven.yml b/templates/gitlab-ci-maven.yml index 6fd4562..99420ad 100644 --- a/templates/gitlab-ci-maven.yml +++ b/templates/gitlab-ci-maven.yml @@ -254,6 +254,11 @@ stages: echo -e "[\\e[1;91mERROR\\e[0m] $*" } + function fail() { + log_error "$*" + exit 1 + } + function output_coverage() { jacoco_reports=$(find . -name "${JACOCO_CSV_REPORT:-jacoco.csv}") -- GitLab