Add asking on errors on lab pipeline
Change-Id: I57146d4c0491ddcb9929a5a8bbd30a8abdca9480
diff --git a/lab-pipeline.groovy b/lab-pipeline.groovy
index d57221f..f76496d 100644
--- a/lab-pipeline.groovy
+++ b/lab-pipeline.groovy
@@ -46,12 +46,10 @@
timestamps {
node {
try {
-
-
+ withEnv(["ASK_ON_ERROR=${ASK_ON_ERROR}"]){
//
// Prepare machines
//
-
stage ('Create infrastructure') {
if (STACK_TYPE == 'heat') {
// value defaults
@@ -536,7 +534,7 @@
common.warningMsg('State apply failed but we should continue to run')
}
}
-
+ }
} catch (Throwable e) {
currentBuild.result = 'FAILURE'
throw e