Is it possible to read or save in a variable the data returned by an Azure Pipelines script? Is it possible to read or save in a variable the data returned by an Azure Pipelines script? azure azure

Is it possible to read or save in a variable the data returned by an Azure Pipelines script?


You can add this code in the python script to save the value for later use in the pipeline. The idea is output this to the console and VSTS will automatically save it under the variable - version.

print('##vso[task.setvariable variable=version;]%s' % (version))