From 545aafe4269234ac893d6a0e01df66e16ce29e6a Mon Sep 17 00:00:00 2001
From: estevesm <joao.esteves.marcal@cern.ch>
Date: Thu, 8 Oct 2020 16:23:54 +0200
Subject: [PATCH] Fixed CI

---
 .gitlab-ci.yml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3497ddc..c908ecc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,6 @@
 # This variable can be defined here or, if it needs to be hidden, as a secure variable of the project
 variables:
   EOS_PATH: "/eos/home-o/okdtests/webeos-tests"
-  CI_OUTPUT_DIR: "/tmp/public"
 
 stages:
   - copy
@@ -12,16 +11,16 @@ copy:
   stage: copy
   script:
     # Create a directory where to move the output generated
-    - mkdir /tmp/public
+    - mkdir public
     # This is an important step as it allows the artifact to NOT
     # include the .git subfolder from the directory where project
     # was checked out by CI runners, since cp * will skip the .git folder.
-    - cp -r * /tmp/public
+    - rsync -a --exclude 'public' --exclude '.git' * public/
   artifacts:
     paths:
       # Upload as an artifact the folder where the output has been generated
       # This will attach to the job the output. It can be browsed or downloaded
-      - /tmp/public
+      - public
     # Make it vanish in 1 hour
     expire_in: 1 hour
 
-- 
GitLab