Adjusting parameters

master
Patryk Gudalewicz 2022-10-28 10:18:44 +02:00
parent 07cbe8e4c9
commit ce782dc70d
1 changed files with 1 additions and 2 deletions

3
Jenkinsfile vendored
View File

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