简体   繁体   中英

How do I reuse release and environment variables in other existing release definitions in TFS 2018?

In TFS 2018 I have a list of Release definitions which should share the same variables. These variables consists of Release and Environment variables. For one release definition all the required release and environment variables are defined already.

However, I didn't find a way to easily reuse the defined variables in other existing release definitions in TFS 2018. Is there a way to do this?

Creating variable groups is not an efficient option since defining multiple variable names in that group is not possible

一个版本定义中“变量”选项卡的屏幕快照。在“作用域”部分中,可以看到存在版本和环境变量

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:

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM