Add defaults for ghprbAuthorRepoGitUrl & ghprbActualCommit.
[infra/cicd.git] / jjb / cloud-infra / delete-heat-stack.sh
index aa3478d4ebd39e94c2d2b7adc3a313208da096db..2bd6c732a10675b8a1ba947b78b728d2279506fb 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
+
 if [[ "$DELETE_STACK" != "yes" ]]; then
   echo "-------------------------------------------------------------------------"
   echo "Info: Stack will not be deleted upon the completion of the job!"