0

I would like to ask how to get path to project (repository) in pipeline (yaml syntax) Azure Devops?

Krzysztof Madej
  • 32,704
  • 10
  • 78
  • 107

1 Answers1

1

You should use $(Agent.BuildDirectory)/s or $(Build.SourcesDirectory) for single repo, but if you use muli repo please check this link

If you have multiple checkout steps in your job, your source code is checked out into directories named after the repositories as a subfolder of s in (Agent.BuildDirectory). If (Agent.BuildDirectory) is C:\agent\_work\1 and your repositories are named tools and code, your code is checked out to C:\agent\_work\1\s\tools and C:\agent\_work\1\s\code.

Krzysztof Madej
  • 32,704
  • 10
  • 78
  • 107