I\'m working with TFS on-premise. My issue is that during a release I have two agent phases separated by a manual intervention.
In the first agent phase, I set a var
There is no way to persist variables (no matter powershell variables or VSTS user defined variables) between two agent phases (and environments) for now.
And there is a related issue Variables set via logging commands are not persistent between agents, you can follow up.
The work around for now is define the variable again in next agent phase.