我如何在TFS 2018中的其他现有版本定义中重用版本和环境变量?

时间:2018-11-29 12:55:47

标签: tfs

在TFS 2018中,我列出了应该共享相同变量的发行版定义。这些变量由Release和Environment变量组成。对于一个版本定义,所有必需的版本和环境变量都已定义。

但是,我找不到在TFS 2018中其他现有版本定义中轻松重用定义的变量的方法。有没有办法做到这一点?

创建变量组不是一种有效的选择,因为无法在该组中定义多个变量名称

Screenshot of Variables tab in one release definition. In the Scope section it is visible that there are release and environment variables

在特定发行版定义中多次定义相同变量名称且具有不同值和不同范围的示例。这也是我在共享组中想要的:

Example of defining the same variable name multiple times with different values and different scopes in a specific release definition. This is what I want also in a shared group

1 个答案:

答案 0 :(得分:0)

为共享变量创建变量组,并将它们链接到相应的发行版和/或环境。