Skip to content

Instantly share code, notes, and snippets.

@DavidDeSloovere
Last active December 9, 2021 06:41
Show Gist options
  • Save DavidDeSloovere/3292ac31649e479d141d67cd14eaaabf to your computer and use it in GitHub Desktop.
Save DavidDeSloovere/3292ac31649e479d141d67cd14eaaabf to your computer and use it in GitHub Desktop.
Create a custom variable in VSTS build powershell task
#output to stdout in special format
Write-Host ("##vso[task.setvariable variable=ThisIsMyVariable;]somevalue")
# reuse in subsequent tasks
$Env:ThisIsMyVariable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment