How do I use VSTS variables in YAML CI Build definitions?


Learn how to use tSQLt to professionally unit test T-SQL code. To enroll in the free self-paced course visit here

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 use this format:


Simple! On the page each variable has two definitions, use the top one so Build.Thing rather than the upper case single word like BUILD_THING.


Add new comment

Site Search with Duck Duck Go