diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3497ddc183c92a06753c053c2fc4ffc4b770a527..c908eccaceaec5dc4ccafce9e3ae1fe0c12f944b 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