使用 YAML 进行构建时,我找不到如何给出引用我想要使用的变量组的指令。我必须在 VSTS 构建 UI 中手动打开我的构建定义并创建链接。
有谁知道如何通过 YAML 引用变量组?
This is now supported in YAML Schema.
Microsoft Variable Group Documentation
For quick reference, from their documentation the usage looks like:
variables:
- group: my-variable-group
- name: my-bare-variable
value: 'value of my-bare-variable'
Run Code Online (Sandbox Code Playgroud)
I came across this when looking for support for setting the variable group name dynamically such as: -group: connectioninfo-$(env) but this is currently not supported. The issue on this is located here in case this enhancement to variables groups is of interest to you in the future as well.
https://github.com/MicrosoftDocs/vsts-docs/issues/3702
| 归档时间: |
|
| 查看次数: |
1622 次 |
| 最近记录: |