DEV Community

Jonas Samuelsson
Jonas Samuelsson

Posted on

azure devops pipeline predefined variables

Azure DevOps provides a number of predefined variables.

Some of these are folders for your source files, artifacts, temp files, etc.
And some of these variables maps to the same value.

Here is a list of all the folder variables (on a window-2019 image):

Agent.BuildDirectory: D:\a\1
Agent.HomeDirectory: C:\agents\2.182.1
Agent.TempDirectory: D:\a\_temp
Agent.ToolsDirectory: C:\hostedtoolcache\windows
Agent.WorkFolder: D:\a
Build.ArtifactStagingDirectory: D:\a\1\a
Build.BinariesDirectory: D:\a\1\b
Build.Repository.LocalPath: D:\a\1\s
Build.SourcesDirectory: D:\a\1\s
Build.StagingDirectory: D:\a\1\a
Common.TestResultsDirectory: D:\a\1\TestResults
Pipeline.Workspace: D:\a\1
System.DefaultWorkingDirectory: D:\a\1\s
Enter fullscreen mode Exit fullscreen mode

Top comments (0)