From b3cc35a755b59517e8afcd3cbd9015c9b31b0c81 Mon Sep 17 00:00:00 2001 From: Patryk Gudalewicz Date: Fri, 28 Oct 2022 09:49:23 +0200 Subject: [PATCH] Adding Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9dbfbc0..ce2d0f3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -44,6 +44,7 @@ pipeline { stage('Execute Dashboard script') { steps { + script { if(CLUSTER.isEmpty()) { currentBuild.result = 'ABORTED' error('Aborting due to missing CLUSTER parameter') @@ -59,7 +60,7 @@ pipeline { SCRIPT_PARAMETER = SCRIPT_PARAMETER + " -E " + ENVIRONMENT.toString() sh "python createDash.py ${SCRIPT_PARAMETER}" } - + } } }