Adding Jenkinsfile
parent
ddde46279f
commit
b3cc35a755
|
|
@ -44,6 +44,7 @@ pipeline {
|
||||||
|
|
||||||
stage('Execute Dashboard script') {
|
stage('Execute Dashboard script') {
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
if(CLUSTER.isEmpty()) {
|
if(CLUSTER.isEmpty()) {
|
||||||
currentBuild.result = 'ABORTED'
|
currentBuild.result = 'ABORTED'
|
||||||
error('Aborting due to missing CLUSTER parameter')
|
error('Aborting due to missing CLUSTER parameter')
|
||||||
|
|
@ -59,7 +60,7 @@ pipeline {
|
||||||
SCRIPT_PARAMETER = SCRIPT_PARAMETER + " -E " + ENVIRONMENT.toString()
|
SCRIPT_PARAMETER = SCRIPT_PARAMETER + " -E " + ENVIRONMENT.toString()
|
||||||
sh "python createDash.py ${SCRIPT_PARAMETER}"
|
sh "python createDash.py ${SCRIPT_PARAMETER}"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue