更新时间:2023-01-16 08:10:45
一些任务定义了输出变量
Some tasks define output variables
对于简短的文本,它表示以下脚本:
For brief text, it represents the follow scripts:
echo "##vso[task.setvariable variable=abc;isOutput=true]123"
只需在任务的空白处指定引用名称,然后就可以使用以下格式调用此输出变量abc
:.
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>
.
例如,如果您将引用名称指定为mycustom
,则只需使用$(mycustom.abc)
调用输出变量.
For example, if you specify the reference name as mycustom
, just call the output variable by using $(mycustom.abc)
.