From 793727681a5cafd5624cfe98ea3da103b6c4827b Mon Sep 17 00:00:00 2001 From: MJB <mjb@it-innovation.soton.ac.uk> Date: Tue, 27 Mar 2018 15:29:47 +0100 Subject: [PATCH] on_failure to clean up --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 251d23b..b265caa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,7 +12,7 @@ build:tests: - build/clmctest-SNAPSHOT.tar.gz expire_in: 1 day -test: +test:all: stage: test dependencies: - build:tests @@ -28,8 +28,10 @@ test: clean: stage: clean + depends: + - test:all script: - vagrant --fixture=inputs -- destroy --force - vagrant --fixture=monitoring -- destroy --force - vagrant --fixture=scripts -- destroy --force - when: on_failure + when: always -- GitLab