Variable value interpolation does not work for Review app environment:name
Summary
Variable value interpolation does not work for Review app environment:name
Steps to reproduce
variables:
TAG: ${CI_COMMIT_REF_NAME}
review:
stage: build
only:
- /^staging-/
- branches
variables:
HOST: ${TAG}.${PROJECT_NAME}.review.example.com
environment:
name: reviews/${TAG}
url: http://${HOST}
on_stop: stop_review
script:
- DB_NAME=${DB_NAME}_${TAG} fab -H example.com -u staging stop createdb:${DB_NAME} deploy
when: on_success
Example Project
https://gitlab.com/phuihock/gl-bugreport-reviewapp-envname
What is the current bug behavior?
Environment that is created for review app is reviews/${CI_COMMIT_REF_NAME}
when I push to master.
See https://gitlab.com/phuihock/gl-bugreport-reviewapp-envname/environments
What is the expected correct behavior?
It should interpolate variable value correctly. Environment reviews/master
should be created when I push to master.
Relevant logs and/or screenshots
Please refer to example project pipeline log.
Output of checks
This bug happens on GitLab.com
Possible fixes
Sorry, not a ruby wizard.