Q:

Azure DevOps ssh script file task

I'm just wondering if it's possible to use a script file in the SSH task in the Releases that will be populated with the environment variables from azure.
Script:
TEST=$(test)

I saved this script as an artifact, successfully download it, and select this script in the SSH task as a file, but the problem is the environment variables is not unwrapped, does someone have some approach?
If I put this same script as an inline script, then it's working. But if I chose script file then not.
I want to have this script in the git repo, so I can easily edit the script.
Does someone have this working?

A:

I'm just wondering if it's possible to use a script file in the SSH task in the Releases that will be populated with the environment variables from azure

I am afraid there is no such out of way to use a script file in the SSH task to populated with the environment variables from azure.
As workaround,  we could use the task Replace Tokens to update the value in the script file:

The format of variable in .sh file is #{TestVar}#.
Hope this helps.

