From 264c48908da4966de14a130bee54e4e8c42285b1 Mon Sep 17 00:00:00 2001 From: Martin Killenberg <martin.killenberg@desy.de> Date: Tue, 8 Jun 2021 14:00:11 +0200 Subject: [PATCH] Introuduced environment variable SKIP_TESTS - If tests are skipped, the build result will be unstable. --- vars/helper.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vars/helper.groovy b/vars/helper.groovy index 864c3ab..0945bac 100644 --- a/vars/helper.groovy +++ b/vars/helper.groovy @@ -276,6 +276,10 @@ EOF /**********************************************************************************************************************/ def doTest(String label, String buildType) { + if (env.SKIP_TESTS) { + currentBuild.result = 'UNSTABLE' + return + } // Run the tests via ctest // Prefix test names with label and buildType, so we can distinguish them later -- GitLab