From f3295a754cce05e8cd13b377cb9a947ea0a36581 Mon Sep 17 00:00:00 2001 From: Ivan “CLOVIS” Canet Date: Sat, 23 Aug 2025 15:45:58 +0000 Subject: [PATCH] ci(gitlab): Fix review app generation --- .gitlab/ci/review-url.sh | 5 +++-- 1 file(s) changed, 3 insertion(s)(+), 2 deletion(s)(-) diff --git a/.gitlab/ci/review-url.sh b/.gitlab/ci/review-url.sh --- a/.gitlab/ci/review-url.sh +++ b/.gitlab/ci/review-url.sh @@ -14,6 +14,7 @@ # so we use a ugly rewrite. # https://gitlab.com/gitlab-org/gitlab/-/issues/450912 -root=$(echo "$CI_PAGES_URL" | sed 's // XSTARTX ;s / /-/ ;s XSTARTX // ') +root_namespace=$(echo "$CI_PROJECT_NAMESPACE" | cut -d'/' -f1) +remaining_path=$(echo "$CI_PROJECT_NAMESPACE" | cut -d'/' -f2- -s) -echo "$root/-/jobs/$CI_JOB_ID/artifacts/$1" +echo "https://$root_namespace.$CI_PAGES_DOMAIN/-/$remaining_path/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/$1" -- tangled.sh