Posts

Showing posts from May, 2017

Set output variable in a Powershell VSTS Build Task

Image
I have value in my artifact files. I set it in  this post . So now I can use it. I will get it almost the same way - using powershell.

VSTS build variable publish as artifact

Image
Powershell is a powerful tool. It's easy to create file in the fly, read from file, call some API. It's easy and flexible. I decided that I want to use all those tree operations in one of my VSTS pipelines. The scenario is: - take variable filled while build queuing - write it's value to text file that will be available as artifact - use artifact file value (read the file) - set Release variable with file content - use release variable for API call (or any other use).