'azure devops | release | script from repo to use in release
Helllo , I have script in repo and I want to use hem in release. which variables should I choose to locate the path of the repo ? is System.DefaultWorkingDirectory ?
Solution 1:[1]
If the Source alias is testalias, the final Path is $(System.DefaultWorkingDirectory)\testalias.
You can run a simple powershell task to confirm the fies.
cd $(System.DefaultWorkingDirectory)
dir
cd $(System.DefaultWorkingDirectory)\$(release.primaryartifactsourcealias)
dir
Please refer https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=classic for more info.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |


