Hello, we have installed the following version of gitlab using the helm chart for use within our company and we are actively using it. After Only and Except were deprecated, we started using if:rules instead, but we are experiencing the following problem in our gitlab. For example, when we want to get a tag and trigger a pipeline, the CI_COMMIT_TAG variable always returns empty and the pipeline is triggered. When I tried the same process with the exact same pipeline on gitlab.com, the pipeline started without any problems when I got a tag. Here is the simple pipeline I used as an example:
stages:
- aws-token
aws-token:
stage: aws-token
image:
name: amazon/aws-cli
entrypoint: [""]
script:
- echo "aws-token succesfully created"
- echo "CI_COMMIT_BRANCH=$CI_COMMIT_BRANCH"
- echo "CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME"
- echo "CI_COMMIT_TAG=$CI_COMMIT_TAG"
rules:
- if: $CI_COMMIT_TAG
Our system features are as follows:
Output of pipeline running on gitlab.com:
Output of the pipeline running on our self-hosted gitlab:
So we can’t trigger pipelines when we create tag because $CI_COMMIT_TAG always empty.
Now, according to these outputs, is there a problem with our GitLab or is it a problem with the Community Edition or a setting we made?