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