From ce782dc70d47ea8ef2db2d4a39d1d533e1edaf6c Mon Sep 17 00:00:00 2001 From: Patryk Gudalewicz Date: Fri, 28 Oct 2022 10:18:44 +0200 Subject: [PATCH] Adjusting parameters --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e83e70b..d85be1d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -46,7 +46,6 @@ pipeline { stage('Execute Dashboard script') { steps { script { - boolean remove = Boolean.getBoolean(REMOVE); def SCRIPT_PARAMETER = '' if(CLUSTER.isEmpty()) { currentBuild.result = 'ABORTED' @@ -67,7 +66,7 @@ pipeline { SCRIPT_PARAMETER = SCRIPT_PARAMETER + " -C " + CLUSTER.toString() SCRIPT_PARAMETER = SCRIPT_PARAMETER + " -E " + ENVIRONMENT.toString() SCRIPT_PARAMETER = SCRIPT_PARAMETER + " -O " + OWNER.toString() - if(remove) { SCRIPT_PARAMETER = SCRIPT_PARAMETER + " --remove "} + if(REMOVE.toBoolean()) { SCRIPT_PARAMETER = SCRIPT_PARAMETER + " --remove "} sh "python createDash.py ${SCRIPT_PARAMETER}" } }