Exclude test job when job was made by project access token

See https://gitlab.com/gitlab-org/gitlab/-/issues/259663
This commit is contained in:
Sven-Hendrik Haase 2020-10-20 05:17:29 +02:00
parent 7f684cdd75
commit 6172cf1aa6
No known key found for this signature in database
GPG Key ID: 39E4B877E62EB915

View File

@ -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