diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1477334427fbf243e575592e9a6dad8183fe0e87..a44e663cd0d75df3d76f69a213110957da109bd8 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: