GEODE: Publish job status to geode-ci channel
[infra/cicd.git] / jjb / cloud-infra / delete-heat-stack.sh
index aa3478d4ebd39e94c2d2b7adc3a313208da096db..b3239445c1461a2a9381344a81804cdb2e362fb4 100644 (file)
 set -o errexit
 set -o nounset
 
+# proceed only if the deployment is done on openstack
+if [[ $DEPLOY_TYPE != "cloud" ]]; then
+  echo "-------------------------------------------------------------------------"
+  echo "Info: It is not an OpenStack deployment so nothing to delete!"
+  echo "-------------------------------------------------------------------------"
+  exit 0
+fi
+
+# we don't support OpenStack scenario verification on OpenStack yet
+if [[ "$DEPLOY_SCENARIO" =~ "os-" ]] && [[ "$PROVISIONER_TYPE" == "heat" ]]; then
+  echo "-------------------------------------------------------------------------"
+  echo "Info: OpenStack scenario verification on OpenStack has not been implemented yet!"
+  echo "-------------------------------------------------------------------------"
+  exit 0
+fi
+
 if [[ "$DELETE_STACK" != "yes" ]]; then
   echo "-------------------------------------------------------------------------"
   echo "Info: Stack will not be deleted upon the completion of the job!"