From 6172cf1aa6907945b417047bec7770f75304a362 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Tue, 20 Oct 2020 05:17:29 +0200 Subject: [PATCH] Exclude test job when job was made by project access token See https://gitlab.com/gitlab-org/gitlab/-/issues/259663 --- .gitlab-ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c04700..7e3c2ce 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -204,14 +204,26 @@ image:base-devel:publish:secure: test:base: extends: .test image: $CI_REGISTRY_IMAGE:base-$CI_COMMIT_REF_SLUG + only: + variables: + # Workaround for https://gitlab.com/gitlab-org/gitlab/-/issues/259663 + # This is fine as at this point we're sure that the release works anyway. + - $GITLAB_USER_EMAIL != "project10185_bot2@example.com" except: - - tags + refs: + - tags test:base-devel: extends: .test image: $CI_REGISTRY_IMAGE:base-devel-$CI_COMMIT_REF_SLUG + only: + variables: + # Workaround for https://gitlab.com/gitlab-org/gitlab/-/issues/259663 + # This is fine as at this point we're sure that the release works anyway. + - $GITLAB_USER_EMAIL != "project10185_bot2@example.com" except: - - tags + refs: + - tags after_script: - gcc -v - g++ -v