From eb68c85880e7f0bceb8cc9a73acc840de6a35681 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Fri, 24 May 2024 17:17:37 +0000 Subject: [PATCH] Merged PR 786666: Use system default working directory in publish symbols Use System.DefaultWorkingDirectory for downloading artifacts in publish symbols instead of BuildXL.ExternalLKGsPackagePath, which is a variable from release pipeline and need to be passed through queue time variables. --- .azdo/publish-symbols.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.azdo/publish-symbols.yml b/.azdo/publish-symbols.yml index cc841190b..9621d3c23 100644 --- a/.azdo/publish-symbols.yml +++ b/.azdo/publish-symbols.yml @@ -24,15 +24,15 @@ jobs: pipelineId: '$(RollingBuild.BuildId)' artifactName: 'buildxl-external.pkgs.$(RollingBuild.BuildNumber)' itemPattern: 'Microsoft.BuildXL.win-x64.0.1.0*' - targetPath: '$(BuildXL.ExternalLKGsPackagePath)\win' + targetPath: '$(System.DefaultWorkingDirectory)\win' - task: PowerShell@2 inputs: targetType: 'inline' script: | # Expand buildxl windows pkg - $directory = "$(BuildXL.ExternalLKGsPackagePath)\Win" - $destinationDirectory = "$(BuildXL.ExternalLKGsPackagePath)\WinExpanded" + $directory = "$(System.DefaultWorkingDirectory)\Win" + $destinationDirectory = "$(System.DefaultWorkingDirectory)\WinExpanded" $file = Get-ChildItem -Path $directory -Filter *.nupkg $nameWithoutExtension = [System.IO.Path]::GetFileNameWithoutExtension($file.FullName) @@ -80,7 +80,7 @@ jobs: - task: PublishSymbols@2 enabled: true inputs: - SymbolsFolder: '$(BuildXL.ExternalLKGsPackagePath)\WinExpanded' + SymbolsFolder: '$(System.DefaultWorkingDirectory)\WinExpanded' SearchPattern: '**' IndexSources: false SymbolServerType: 'TeamServices'