From 698157080793b0795a77e21e3b8477944ace16e5 Mon Sep 17 00:00:00 2001 From: Mitchell Nielsen Date: Mon, 11 Sep 2023 11:12:15 -0500 Subject: [PATCH] CI: Only include Allure job on gitlab.com In https://gitlab.com/gitlab-org/charts/gitlab/-/merge_requests/3370 we added the Allure report to merge requests, and only `include` the CI reference files on gitlab.com. We need to have that same rule on the CI job that references those CI reference files, so this change ensures that the Allure CI job is skipped if the CI server is not `gitlab.com`. --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7a695833af..09645bf54d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1087,4 +1087,6 @@ e2e-test-report: ALLURE_RESULTS_GLOB: "gitlab-qa-run-*/**/allure-results" ALLURE_JOB_NAME: $QA_RUN_TYPE rules: - - if: '$PIPELINE_TYPE =~ /_MR_PIPELINE$/' \ No newline at end of file + - if: $CI_SERVER_HOST != "gitlab.com" + when: never + - if: '$PIPELINE_TYPE =~ /_MR_PIPELINE$/' -- GitLab