CI_COMMIT_* env vars for CI/CD
I am trying to use the environment variables set by the CI/CD context for commands defined in .gitlab-ci.yml and realize that the CI_COMMIT_* variables contain the underlying git hashes instead of the mercurial hashes.
To reproduce, use any project and the following .gitlab-ci.yml (adding the lines needed for it to use the runner you have available):
stages:
- no-hg-commit-hashes
no-hg-commit-hashes:
script:
- env
you will see in the log CI_COMMIT_SHA and CI_COMMIT_SHORT_SHA that do not have the mercurial values.