diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 203acd44cc8531755a672c13b5cb0476064e6344_LmdpdGxhYi1jaS55bWw=..da452a65d801aace89560f6a4ab8fd857aa29c0e_LmdpdGxhYi1jaS55bWw= 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -129,7 +129,7 @@
     - make -C rust dev-dependencies
     # prebuilding RHGitaly to avoid doing it from tests
     # (output is interesting and we avoid timeout issues)
-    - . /root/.cargo/env
+    - test -e /root/.cargo/env && . /root/.cargo/env
     - cargo build --manifest-path rust/Cargo.toml
     - echo "Full test run with Gitaly and RHGitaly Comparison tests"
     - ./run-all-tests