diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e964a4756fe0e710ee6ce68a0755facae916ab31..d0b025fc2d7c84368c6e5d7625f120e449101d3a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -47,7 +47,7 @@ build-job-Z2:       # This job runs in the build stage, which runs first.
     -   exit 1
     - fi
     # cleanup arm-AAA-ip directory
-    - cd ../../../../../../
+    - cd ../../../../
     - rm -r arm-AAA-ip
   artifacts:
     paths:
@@ -83,7 +83,7 @@ build-job-ZCU104:       # This job runs in the build stage, which runs first.
     -   exit 1
     - fi
     # cleanup arm-AAA-ip directory
-    - cd ../../../../../../
+    - cd ../../../../
     - rm -r arm-AAA-ip
   artifacts:
     paths: