简体   繁体   English

TFS 2017发布管道

[英]TFS 2017 Release pipeline

I have made Release pipeline for deploying artefacts using TFS 2017 Update3 Release Management and I have used variable in tasks ie ServerUsername(1). 我已经制作了用于使用TFS 2017 Update3 Release Management部署伪影的Release管道,并且在任务(即ServerUsername(1))中使用了变量。 Now I wish to change the variable(1) name to TFSUsername in Dev, QA, UAT environment. 现在,我想在Dev,QA,UAT环境中将变量(1)的名称更改为TFSUsername。 But there is large no. 但是没有。 of tasks. 的任务。 Doing it manually will be very time consuming. 手动执行将非常耗时。 Is there any other way out. 还有其他出路吗?

Create multiple environments. 创建多个环境。 Each environment allows you to specify variables, which override any variables defined in the Release scope. 每个环境都允许您指定变量,这些变量将覆盖Release范围中定义的所有变量。

So, on your dev environment, define a variable $(UserName) . 因此,在您的开发环境中,定义变量$(UserName) Use that throughout the dev environment. 在整个开发环境中使用它。 On your QA environment, re-use the same variable, $(UserName) . 在您的质量检查环境中,重复使用相同的变量$(UserName) And so on. 等等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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