Not available CI_COMMIT_REF_NAME in artifacts section

Using old version of Gitlab 15.x.x we used in CI/CD gitlab-ci.yml build section with the following code

artifacts:
    name: "project-$CI_COMMIT_REF_NAME"
    paths:
      - dist/

The result was that artifact .zip file was created with name identical with name of Tag. Example project-v1.33.12.zip

Using now the last version of Gitlab 16.7.0 (Runner also 16.7.0) this functionality doesn’t work and the name of the artifact zip is

project-$CI_COMMIT_REF_NAME.zip

Please, is anybody able to explain why this feature was disabled and if there is any way to have it again working?

Sounds like a bug, this should work according to the docs. Please open an issue.

Hi,

This matter works again from Gitlab 16.7.2 :wink:

1 Like