ci variables cannot substring
Summary
When I use substring in ci variable define, I got an empty string.
Steps to reproduce
using this .gitlab-ci.yml
in master branch.
image: busybox:latest
variables:
REVIEW: "${CI_COMMIT_REF_SLUG#*t}"
build:
script:
- echo $REVIEW
- REVIEW="${CI_COMMIT_REF_SLUG#*t}"
- echo $REVIEW
Example Project
https://gitlab.com/AtrisMio/ci-substring-variables
What is the current bug behavior?
Cannot get the right variable. I get ''
.
What is the expected correct behavior?
Should get 'er'
.