Allow predefined variables to be used in YAML-defined variables
Summary
A user should be able to use the predefined variables inside a YAML-defined variable.
variables:
VENV_ROOT: C:\temp\%CI_PROJECT_ID% # Project #85
When the above is run, VENV_ROOT
is the raw string C:\temp\%CI_PROJECT_ID%
rather than C:\temp\85
Usage Case
I need to create a long variable that's essentially C:\temp\%CI_PROJECT_ID%\%CI_BUILD_REF_NAME%\%CI_BUILD_NAME%\
and use this in multiple locations in the ci YAML file. If I want to change this path at a later date, I have to change all instances of it.
Having it as a YAML-defined variable will reduce chance of mistakes and make things easier to maintain.
Versions, etc.
- GitLab-Multi-Runner 1.0.4 (014aa8c) on Windows.
- GitLab CE v8.5.2