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
You can share a variable between the agent phases by using the TFS Rest API and creating a new variable in the release.
You can create a helper module to facilitate this task.
$Env:Release_ReleaseId.Add-Member, to the variables hashtable of the release returned in step 1, where the name is your desired variable name and the value is a ConfigurationVariableValue.In order to use this approach, you would set the variable in your first agent. Then, in the second agent, you can simply read the TFS variable using the $(VariableName) semantic.