From 74518ba6ea6b285b7e8c05503d9af4732b82d844 Mon Sep 17 00:00:00 2001
From: Julien Leduc <julien.leduc@cern.ch>
Date: Tue, 4 Jul 2017 11:02:46 +0200
Subject: [PATCH] Fixing nightly1 job as the namespace was deleted before the
 extended set of commands could run.

---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 575e2a0283..f46e86c1a3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -152,9 +152,10 @@ nightly1:
   script:
     - echo "Running  nightly tests"
     - export NAMESPACE="archiveretrieve-${CTA_BUILD_ID}-$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 4 | head -n 1)"
-    - cd continuousintegration/orchestration/; ./run_systemtest.sh -n ${NAMESPACE} -p ${CI_PIPELINE_ID} -s tests/archive_retrieve.sh -O -D
+    - cd continuousintegration/orchestration/; ./run_systemtest.sh -n ${NAMESPACE} -p ${CI_PIPELINE_ID} -s tests/archive_retrieve.sh -O -D -k
     - kubectl -n ${NAMESPACE} exec client -- bash /root/client_ar.sh -n 2000 -s 80 -p 10 -v
     - kubectl -n ${NAMESPACE} exec client -- bash /root/client_ar.sh -n 2000 -s 80 -p 10 -v
+    - ./delete_instance.sh -n ${NAMESPACE}
   artifacts:
     when: always
     expire_in: 30 days
-- 
GitLab