From eed331135510fd33ad02a271258ddc5cb95f453c Mon Sep 17 00:00:00 2001 From: QXZ3NHY Date: Tue, 20 Jun 2023 09:59:07 +0200 Subject: [PATCH] csv format test --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 71e32d2..eadb132 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -138,6 +138,14 @@ pipeline { SCRIPT_PARAMETER = SCRIPT_PARAMETER + " -p " + PRESELECT.toString() } + if (FORMATS.isEmpty()) { + currentBuild.result = 'ABORTED' + error('Aborting due to missing report format parameter') + return + } else { + SCRIPT_PARAMETER = SCRIPT_PARAMETER + " -o " + FORMATS.toString() + } + echo "${SCRIPT_PARAMETER}" sh "python3.8 createReport.py ${SCRIPT_PARAMETER}" sh "python3.8 summary.py"