I want to be able to display a directory path of the Artifact in the PowerShell task in the Release pipeline.
In the build pipeline, the directory of the Artifact is described by the variable $(System.DefaultWorkingDirectory)
and if I try to display it
in the PowerShell task using the command
Write-Host $(System.DefaultWorkingDirectory)
in the console output, it shows the path C:\agent\_work\3\a
.
This variable doesn't exist in the Release pipeline and when I run the command
Get-ChildItem Env:
in the powerhsell task, in the release pipeline, I can see all environemnt variables but none of the variables stores the C:\agent\_work\3\a path
How can i get it, cuz somehow the AgentJob knows the proper directory of the Artifact when doing the Artifact downloading process.
Any ideas? Cheers