How do I use VSTS variables in YAML CI Build definitions?
Hey, VSTS YAML builds are my new favorite thing, by like a million miles.
If you have a yaml build definition ( .vsts-ci.yml ) and you want to use one of the build variables then it isn’t totally clear how to include them in a definition (it hasn’t been out long so I expect more docs to come soon), while we wait for the docs if you want to use one of the variables from https://docs.microsoft.com/en-us/vsts/build-release/concepts/definitions… use this format:
$(Build.SourcesDirectory)
Simple! On the page https://docs.microsoft.com/en-us/vsts/build-release/concepts/definitions… each variable has two definitions, use the top one so Build.Thing rather than the upper case single word like BUILD_THING.
ok?