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

    name: "project-$CI_COMMIT_REF_NAME"
      - dist/

The result was that artifact .zip file was created with name identical with name of Tag. Example

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


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.


This matter works again from Gitlab 16.7.2 :wink:

1 Like