Variables nested substitution
Description
Currently, simple variable sub. is working. But not nested (I mean a variable which uses a variable) not sure if substitution is the right work, sorry..
Proposal
Variables should always resolve other variables.
Links to related issues and merge requests / references
I setup a test project here: https://gitlab.com/ebuildy/test-gitlab-ci/
stages:
- test
test:
stage: test
script:
- echo $PROJECT
- echo $PROJECT_FULLNAME
- echo $PROJECT_FULLNAME2
- echo $PROJECT_FULLNAME3
variables:
PROJECT_FULLNAME2: "FULL_${PROJECT}_2"
PROJECT_FULLNAME3: "FULL_${PROJECT_FULLNAME2}_2"
variables:
PROJECT: "TOTO"
PROJECT_FULLNAME: "FULL_${PROJECT}_1"
gives
$ echo $PROJECT
TOTO
$ echo $PROJECT_FULLNAME
FULL_TOTO_1
$ echo $PROJECT_FULLNAME2
FULL_TOTO_2
$ echo $PROJECT_FULLNAME3
FULL_FULL_${PROJECT}_2_2
Build succeeded
Where as in this example, echo $PROJECT_FULLNAME3
should give FULL_FULL_TOTO_2_2
Please correct me if I misunderstood something, thanks you.