How to use Output Variables in Release pipeline

試著忘記壹切 提交于 2019-12-23 12:06:59

问题


I searched all the docs about Output Variables are for build pipeline and only told me how to set in .yaml. But how to use it in release pipeline?

Supposed I have 2 variables $abc="123" $def="456" in step Login. How to set them in below text box? and How to use them in step Deploy?


回答1:


Some tasks define output variables

For brief text, it represents the follow scripts:

echo "##vso[task.setvariable variable=abc;isOutput=true]123"

Just specify the reference name in the blank of task, and then, you can call this output variable abc by using the format: <reference name>.<variable name>.

For example, if you specify the reference name as mycustom, just call the output variable by using $(mycustom.abc).



来源:https://stackoverflow.com/questions/59369619/how-to-use-output-variables-in-release-pipeline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!