Skip to main content
Formatting, inline variable.
Source Link
Richard Slater
  • 11.7k
  • 7
  • 42
  • 81

I have a multi-configuration web application I'm using parallel deployments, leveraging Task Groups for reusing my deployment code.

I've been using Powershell tasks and the ##vso[task.setvariable variable]##vso[task.setvariable variable] but those only are readable by other tasks (particularly non-powershellPowerShell tasks) if they correspond to top-level variables at the Build/Release level. Variables that are only local to the task-group.

Basically, the behavior described here:

in https://github.com/Microsoft/azure-pipelines-tasks/issues/3116Issue #3116

Does anybody have a better workaround for this issue besides binding all your variables right to the root with identical names?

I have a multi-configuration web application I'm using parallel deployments, leveraging Task Groups for reusing my deployment code.

I've been using Powershell tasks and the ##vso[task.setvariable variable] but those only are readable by other tasks (particularly non-powershell tasks) if they correspond to top-level variables at the Build/Release level. Variables that are only local to the task-group.

Basically, the behavior described here:

https://github.com/Microsoft/azure-pipelines-tasks/issues/3116

Does anybody have a better workaround for this issue besides binding all your variables right to the root with identical names?

I have a multi-configuration web application I'm using parallel deployments, leveraging Task Groups for reusing my deployment code.

I've been using Powershell tasks and the ##vso[task.setvariable variable] but those only are readable by other tasks (particularly non-PowerShell tasks) if they correspond to top-level variables at the Build/Release level. Variables that are only local to the task-group.

Basically, the behavior described in Issue #3116

Does anybody have a better workaround for this issue besides binding all your variables right to the root with identical names?

Source Link
Pxtl
  • 111
  • 3

How to pass variables between build/deploy tasks in a TaskGroup in VSTS 16.131.28601.4

I have a multi-configuration web application I'm using parallel deployments, leveraging Task Groups for reusing my deployment code.

I've been using Powershell tasks and the ##vso[task.setvariable variable] but those only are readable by other tasks (particularly non-powershell tasks) if they correspond to top-level variables at the Build/Release level. Variables that are only local to the task-group.

Basically, the behavior described here:

https://github.com/Microsoft/azure-pipelines-tasks/issues/3116

Does anybody have a better workaround for this issue besides binding all your variables right to the root with identical names?