Newton Zou
Newton Zou

Reputation: 588

How to use Output Variables in Release pipeline

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? enter image description here

Upvotes: 11

Views: 17339

Answers (1)

Mengdi Liang
Mengdi Liang

Reputation: 18958

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).

Upvotes: 15

Related Questions