I can't find out how to access variables in a build-script provided by the gitlab-ci.yml
-file.
I have tried to declare variables in two ways:
- Private Variables in the Web-Interface of GitLab CI
- Variable overrides/apennding in
config.toml
I try to access them in my gitlab-ci.yml
-files commands like that:
msbuild ci.msbuild [...] /p:Configuration=Release;NuGetOutputDir="$PACKAGE_SOURCE"
where $PACKAGE_SOURCE
is the desired variable (PACKAGE_SOURCE
) but it does not work (it does not seem to be replaced). Executing the same command manually works just as expected (replacing the variable name with its content)
Is there some other syntax required i am not aware of?
I have tried:
$PACKAGE_SOURCE
$(PACKAGE_SOURCE)
${PACKAGE_SOURCE}
PS: Verifying the runner raises no issues, if this matters.