From 8025dccb44f74732c633a595ef8e83be6756d72e Mon Sep 17 00:00:00 2001
From: handreas <andreas.hamacher@monash.edu>
Date: Thu, 30 Jan 2020 23:57:36 +0000
Subject: [PATCH] enabling stack deletion again

Former-commit-id: 203d81504fb564ae99bf102ede104b37088f7758
---
 .gitlab-ci.yml | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 93cde3ed..79a22d79 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -181,8 +181,13 @@ extended:
   tags:
   - heat
   - ansible
+  before_script:
+    - echo "cleanup stack"
+    - sleep 30
+    - echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh
   script:
-  - echo "extended stage"
+    - source ./$NECTAR_ALLOCATION-openrc.sh
+    - bash -x ./CICD/heat/heatcicdwrapper.sh delete_if_exists $STACKNAME
   only:
     variables:
       - $EXTENDED != null
@@ -198,7 +203,4 @@ clean:
   script:
     - source ./$NECTAR_ALLOCATION-openrc.sh
     - bash -x ./CICD/heat/heatcicdwrapper.sh delete_if_exists $STACKNAME
-  when: manual 
-  only:
-    variables:
-      - $EXTENDED != null
\ No newline at end of file
+  when: manual
\ No newline at end of file
-- 
GitLab