diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 106651614932b2ac7eb3d684a1127cceefe4502c..ac6fa2de20456bba06680fa87bf11e088945d70b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,9 +14,9 @@ win_visual_studio_static_local_deps:
         - set DEPENDENCIES_LINK_TYPE=static
         - set clean_after=yes
         - call win_VS_build_x64_debug.bat
-        - cd ..\..
 
     script:
+        - cd ..\..
         - cd build_scripts\windows
 #        - call win_run_tests.bat
         - cd ..\..
@@ -80,9 +80,9 @@ ubuntu_boost_system:
         - export DEPENDENCIES_LINK_TYPE=shared
         - export CLEAN_AFTER=yes
         - ./linux_gcc_build_x64_debug_system.sh
-        - cd ../..
 
     script:
+        - cd ../..
         - cd build_scripts/linux
 #        - './linux_run_tests.sh'
         - cd ../..
@@ -105,9 +105,9 @@ ubuntu_boost_local_static_deps:
         - export DEPENDENCIES_LINK_TYPE=static
         - export CLEAN_AFTER=yes
         - ./linux_gcc_build_x64_debug_local.sh
-        - cd ../..
 
     script:
+        - cd ../..
         - cd build_scripts/linux
 #        - './linux_run_tests.sh'
         - cd ../..
@@ -130,9 +130,9 @@ ubuntu_boost_local_dynamic_deps:
         - export DEPENDENCIES_LINK_TYPE=shared
         - export CLEAN_AFTER=yes
         - ./linux_gcc_build_x64_debug_local.sh
-        - cd ../..
 
     script:
+        - cd ../..
         - cd build_scripts/linux
 #        - './linux_run_tests.sh'
         - cd ../..