diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 698c883e47df7ce52c3d53f85edc91a10ecadec1..0a527d0cb64e33d6c2c0dcd27c19b31256217978 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 #############