File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ extends:
369369 componentPassword : $(dn-bot-dnceng-build-e-code-full-release-e-packaging-r)
370370 componentBuildProjectName : internal
371371 sourceBranch : " $(ComponentBranchName)"
372- publishDataURI : " https://dev.azure.com/dnceng/internal/_apis/git/repositories/dotnet-roslyn/items?path=eng/config/PublishData.json&api-version=6.0"
372+ publishDataURI : " https://dev.azure.com/dnceng/internal/_apis/git/repositories/dotnet-roslyn/items?path=eng/config/PublishData.json&version=$(ComponentBranchName)& api-version=6.0"
373373 publishDataAccessToken : " $(System.AccessToken)"
374374 dropPath : ' $(Pipeline.Workspace)\VSSetup'
375375 updateXamlRoslynVersion : false
Original file line number Diff line number Diff line change @@ -268,6 +268,6 @@ stages:
268268 vsBranchName : ${{ parameters.VisualStudioBranchName }}
269269 titlePrefix : ${{ parameters.OptionalTitlePrefix }}
270270 sourceBranch : $(SourceBranchName)
271- publishDataURI : " https://raw.githubusercontent.com/dotnet/roslyn/main /eng/config/PublishData.json"
271+ publishDataURI : " https://raw.githubusercontent.com/dotnet/roslyn/$(SourceBranchName) /eng/config/PublishData.json"
272272 queueSpeedometerValidation : true
273273
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ $ErrorActionPreference="Stop"
88
99$VSSetupDir = Join-Path $ArtifactsDir " VSSetup\$configuration "
1010$PackagesDir = Join-Path $ArtifactsDir " packages\$configuration "
11- $PublishDataUrl = " https://raw.githubusercontent.com/dotnet/roslyn/main/eng/config/PublishData.json"
1211
1312$binaryLog = if (Test-Path variable:binaryLog) { $binaryLog } else { $false }
1413$nodeReuse = if (Test-Path variable:nodeReuse) { $nodeReuse } else { $false }
@@ -28,8 +27,10 @@ function GetPublishData() {
2827 return $global :_PublishData
2928 }
3029
31- Write-Host " Downloading $PublishDataUrl "
32- $content = (Invoke-WebRequest - Uri $PublishDataUrl - UseBasicParsing).Content
30+ $publishDataFile = Join-Path $PSScriptRoot " config\PublishData.json"
31+
32+ Write-Host " Reading $publishDataFile "
33+ $content = Get-Content - Path $publishDataFile - Raw
3334
3435 return $global :_PublishData = ConvertFrom-Json $content
3536}
You can’t perform that action at this time.
0 commit comments