TFS 2017 Release pipeline

113 Views Asked by At

I have made Release pipeline for deploying artefacts using TFS 2017 Update3 Release Management and I have used variable in tasks i.e. ServerUsername(1). Now I wish to change the variable(1) name to TFSUsername in Dev, QA, UAT environment. But there is large no. of tasks. Doing it manually will be very time consuming. Is there any other way out.

1

There are 1 best solutions below

4
Daniel Mann On

Create multiple environments. Each environment allows you to specify variables, which override any variables defined in the Release scope.

So, on your dev environment, define a variable $(UserName). Use that throughout the dev environment. On your QA environment, re-use the same variable, $(UserName). And so on.