2727 $commonMatrixAndBuildOptions = "$commonMatrixAndBuildOptions --base-override-regex '^(?!mcr\.microsoft\.com)' --base-override-sub '$(public-mirror.server)/'"
2828 }
2929
30+ $containerBuildRepoRoot="/repo"
31+
3032 if ("${{ parameters.versionsRepoRef }}" -ne "") {
3133 $versionsBasePath = "${{ parameters.versionsRepoPath }}/"
3234 $pipelineDisabledCache = "false"
@@ -39,14 +41,18 @@ steps:
3941 $buildRepoName = "$(Build.Repository.Name)"
4042 }
4143
44+ # When multiple repos are checked out in Azure Pipelines, each repo is placed in a subfolder
45+ # under the main working directory. The subfolder is named after the repo.
46+ $containerBuildRepoRoot = "$containerBuildRepoRoot/$buildRepoName"
47+
4248 $engDockerToolsPath = "$(Build.Repository.LocalPath)/$buildRepoName/$(engDockerToolsRelativePath)"
4349
4450 $engPath = "$(Build.Repository.LocalPath)/$buildRepoName/eng"
45- $manifest = "$buildRepoName /$(manifest)"
46- $testResultsDirectory = "$buildRepoName /$testResultsDirectory"
51+ $manifest = "$containerBuildRepoRoot /$(manifest)"
52+ $testResultsDirectory = "$containerBuildRepoRoot /$testResultsDirectory"
4753
4854 if ("$(testScriptPath)") {
49- $testScriptPath = "$buildRepoName /$(testScriptPath)"
55+ $testScriptPath = "$containerBuildRepoRoot /$(testScriptPath)"
5056 }
5157
5258 echo "##vso[task.setvariable variable=buildRepoName]$buildRepoName"
6470 echo "##vso[task.setvariable variable=commonMatrixAndBuildOptions]$commonMatrixAndBuildOptions"
6571 echo "##vso[task.setvariable variable=versionsBasePath]$versionsBasePath"
6672 echo "##vso[task.setvariable variable=pipelineDisabledCache]$pipelineDisabledCache"
73+ echo "##vso[task.setvariable variable=containerBuildRepoRoot]$containerBuildRepoRoot"
6774 displayName : Set Common Variables for Matrix, Build, and Publish
6875
6976- ${{ if ne(parameters.versionsRepoRef, '') }} :
0 commit comments