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 @@ -385,7 +385,7 @@ extends:
385
385
componentPassword : $(dn-bot-dnceng-build-e-code-full-release-e-packaging-r)
386
386
componentBuildProjectName : internal
387
387
sourceBranch : " $(ComponentBranchName)"
388
- publishDataURI : " https://dev.azure.com/dnceng/internal/_apis/git/repositories/dotnet-roslyn/items?path=eng/config/PublishData.json&api-version=6.0"
388
+ publishDataURI : " https://dev.azure.com/dnceng/internal/_apis/git/repositories/dotnet-roslyn/items?path=eng/config/PublishData.json&version=$(ComponentBranchName)& api-version=6.0"
389
389
publishDataAccessToken : " $(System.AccessToken)"
390
390
dropPath : ' $(Pipeline.Workspace)\VSSetup'
391
391
Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ extends:
321
321
vsBranchName : ${{ parameters.VisualStudioBranchName }}
322
322
titlePrefix : ${{ parameters.OptionalTitlePrefix }}
323
323
sourceBranch : $(ComponentBranchName)
324
- publishDataURI : " https://github.com/raw/dotnet/roslyn/main /eng/config/PublishData.json"
324
+ publishDataURI : " https://github.com/raw/dotnet/roslyn/$(ComponentBranchName) /eng/config/PublishData.json"
325
325
queueSpeedometerValidation : true
326
326
dropPath : ' $(Pipeline.Workspace)\VSSetup'
327
327
retainInsertedBuild : false
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ $ErrorActionPreference="Stop"
8
8
9
9
$VSSetupDir = Join-Path $ArtifactsDir " VSSetup\$configuration "
10
10
$PackagesDir = Join-Path $ArtifactsDir " packages\$configuration "
11
- $PublishDataUrl = " https://github.com/raw/dotnet/roslyn/main/eng/config/PublishData.json"
12
11
13
12
$binaryLog = if (Test-Path variable:binaryLog) { $binaryLog } else { $false }
14
13
$nodeReuse = if (Test-Path variable:nodeReuse) { $nodeReuse } else { $false }
@@ -27,8 +26,10 @@ function GetPublishData() {
27
26
return $global :_PublishData
28
27
}
29
28
30
- Write-Host " Downloading $PublishDataUrl "
31
- $content = (Invoke-WebRequest - Uri $PublishDataUrl - UseBasicParsing).Content
29
+ $publishDataFile = Join-Path $PSScriptRoot " config\PublishData.json"
30
+
31
+ Write-Host " Reading $publishDataFile "
32
+ $content = Get-Content - Path $publishDataFile - Raw
32
33
33
34
return $global :_PublishData = ConvertFrom-Json $content
34
35
}
You can’t perform that action at this time.
0 commit comments