From 051ff429fda849c7464da1f2a3498a00280bb825 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 4 Sep 2025 19:00:04 +0200 Subject: [PATCH] ci/init-stage2: symlink install dir between both CI_PROJECT_DIR paths Part-of: --- .gitlab-ci/common/init-stage2.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci/common/init-stage2.sh b/.gitlab-ci/common/init-stage2.sh index 73bbfe19bdc..26693e1e924 100755 --- a/.gitlab-ci/common/init-stage2.sh +++ b/.gitlab-ci/common/init-stage2.sh @@ -41,6 +41,11 @@ trap cleanup INT TERM EXIT # background by this script BACKGROUND_PIDS= +# Until we uniformize the install dir to /install, we need to make it +# available to both possible CI_PROJECT_DIR paths. +if [ "$GIT_STRATEGY" = empty ]; then + ln -s "$CI_PROJECT_DIR" "${CI_PROJECT_DIR%-empty}" +fi for path in '/dut-env-vars.sh' '/set-job-env-vars.sh' './set-job-env-vars.sh'; do [ -f "$path" ] && source "$path"