Skip to content

Commit dcf9af2

Browse files
[release/dev17.12] Pull publish data directly from branch (#80332)
* Pull publish data from current branch * delete unused param --------- Co-authored-by: David Barbet <[email protected]>
1 parent 7527324 commit dcf9af2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

azure-pipelines-official.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ extends:
385385
componentPassword: $(dn-bot-dnceng-build-e-code-full-release-e-packaging-r)
386386
componentBuildProjectName: internal
387387
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"
389389
publishDataAccessToken: "$(System.AccessToken)"
390390
dropPath: '$(Pipeline.Workspace)\VSSetup'
391391

azure-pipelines-pr-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ extends:
321321
vsBranchName: ${{ parameters.VisualStudioBranchName }}
322322
titlePrefix: ${{ parameters.OptionalTitlePrefix }}
323323
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"
325325
queueSpeedometerValidation: true
326326
dropPath: '$(Pipeline.Workspace)\VSSetup'
327327
retainInsertedBuild: false

eng/build-utils.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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://github.com/raw/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 }
@@ -27,8 +26,10 @@ function GetPublishData() {
2726
return $global:_PublishData
2827
}
2928

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
3233

3334
return $global:_PublishData = ConvertFrom-Json $content
3435
}

0 commit comments

Comments
 (0)