From 34d4de5177e5d94f2b61099a2a86fb35db7b1aa1 Mon Sep 17 00:00:00 2001
From: Antoine Regimbeau <antoine.regimbeau@c-s.fr>
Date: Wed, 15 May 2019 16:25:51 +0200
Subject: [PATCH] Try on artifacts

---
 .gitlab-ci.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5bcef7ee45..3380119885 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -83,10 +83,15 @@ ubuntu-llvm:
     - git lfs install --skip-repo
   artifacts:
     expire_in: 24 hrs
+    when: on_success
+    paths:
+      - sb_branch.txt
+  artifacts:
+    expire_in: 2 days
+    when : on_failure
     paths:
       # This recovers logs from superbuild build
       - build/*/*/*/*.log
-      - sb_branch.txt
 
 ubuntu-superbuild-prepare:
   extends: .common-prepare
-- 
GitLab