Change-Id: I6a170e6a5a3f8c8d29e9407a7a3a3e243864ad20
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
if [ $STATUS -ne 0 ]; then
echo "Error deploying in AWS"
+ $HOME/.kni/${SITE_NAME}/requirements/openshift-install destroy cluster --dir=/$HOME/.kni/${SITE_NAME}/final_manifests 2>&1 | tee ${WORKSPACE}/aws_destroy.log
exit 1
fi
if [ $STATUS -ne 0 ]; then
echo "Error applying workloads to AWS"
+ $HOME/.kni/${SITE_NAME}/requirements/openshift-install destroy cluster --dir=/$HOME/.kni/${SITE_NAME}/final_manifests 2>&1 | tee ${WORKSPACE}/aws_destroy.log
exit 1
fi
if [ $STATUS -ne 0 ]; then
echo "Error deploying in GCP"
+ $HOME/.kni/${SITE_NAME}/requirements/openshift-install destroy cluster --dir=/$HOME/.kni/${SITE_NAME}/final_manifests 2>&1 | tee ${WORKSPACE}/gcp_destroy.log
exit 1
fi
if [ $STATUS -ne 0 ]; then
echo "Error applying workloads to GCP"
+ $HOME/.kni/${SITE_NAME}/requirements/openshift-install destroy cluster --dir=/$HOME/.kni/${SITE_NAME}/final_manifests 2>&1 | tee ${WORKSPACE}/gcp_destroy.log
exit 1
fi