diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 72cf2b25251fc0d53cd1db4a2fdfe8cfb0216069..1f055338764e2b6e428a6776c87b0d9ac98f7324 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -39,7 +39,7 @@ build-job-Z2:       # This job runs in the build stage, which runs first.
   stage: build
   script:
     # move to fpga_imp directory and run the fpga build script for pynq z2
-    - source ../set_env.sh
+    - source set_env.sh
     - git pull --recurse-submodules
     - cd ./nanosoc_tech/fpga/
     - make build_fpga FPGA=z2
@@ -62,7 +62,7 @@ build-job-ZCU104:       # This job runs in the build stage, which runs first.
   stage: build
   script:
    # move to fpga_imp directory and run the fpga build script for pynq z2 
-    - source ../../set_env.sh
+    - source set_env.sh
     - git pull --recurse-submodules
     - cd ./nanosoc_tech/fpga
     - make build_fpga FPGA=zcu104