engine: Enable voting for offline jobs
[infra/cicd.git] / jjb / engine / engine-verify-jobs / scripts / delete-heat-stack.sh
index da41d0b2bdc95a79df8d0a35b1be919374aef832..9b76d88284a2bd37f65b374015d31e49688207bf 100755 (executable)
@@ -27,6 +27,11 @@ if [[ "$EXECUTION_MODE" == "offline-deployment" && "$PROVISIONER_TYPE" == "heat"
   exit 0
 fi
 
+if [[ "$DELETE_STACK" != "true" || "$PROVISIONER_TYPE" != "heat" ]]; then
+  echo "Info  : Skipping stack delete as it is either not a cloud deployment or slack deletion is disabled!"
+  exit 0
+fi
+
 set +u
 source /opt/engine/.venv/bin/activate
 set -u