From e8489cc0f9e7e51785ecae0b6ca6774691a04a18 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Sun, 2 Aug 2020 15:52:29 +0200 Subject: [PATCH] CI: Move the {SRC,WORK}_DIR variables to a place where they will be visible to all jobs --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 698c883e..0a527d0c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,14 +11,15 @@ stages: only: - main - merge_requests + variables: + SRC_DIR: $CI_PROJECT_DIR # Where the sources are + WORK_DIR: $HOME/CI_$CI_PIPELINE_ID # Where we will work, so that it's not erased .breaking_tests: &breaking_tests allow_failure: true variables: - GIT_DEPTH: 10 # No need to clone all the history - SRC_DIR: $CI_PROJECT_DIR # Where the sources are - WORK_DIR: $HOME/CI_$CI_PIPELINE_ID # Where we will work, so that it's not erased + GIT_DEPTH: 10 # No need to clone all the history ################################################# ### Initialization and Finalization ############# -- GitLab