Skip to content

Commit 0e6ef40

Browse files
committed
Don't use PlatformName as a variable name
1 parent 2ad5c01 commit 0e6ef40

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

eng/pipelines/templates/jobs/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
-BuildInfoPath '$(Pipeline.Workspace)/build_info/build_info.json'
6767
-OutputPath '$(Build.ArtifactStagingDirectory)'
6868
-ServerName '${{ parameters.ServerName }}'
69-
-PlatformName '$(PlatformName)'
69+
-PlatformName '$(BuildPlatformName)'
7070
-ReleaseBuild:$${{ ne(parameters.PublishTarget, 'none') }}
7171
-SelfContained
7272
-SingleFile
@@ -104,7 +104,7 @@ jobs:
104104
condition: and(succeededOrFailed(), eq(variables['RunUnitTests'], 'true'))
105105
inputs:
106106
testResultsFiles: "$(Build.ArtifactStagingDirectory)/testResults/*.trx"
107-
testRunTitle: "unit-${{ parameters.OSName }}-$(Architecture)"
107+
testRunTitle: "unit_$(System.JobName)"
108108
testResultsFormat: "VSTest"
109109
mergeTestResults: true
110110

@@ -113,7 +113,7 @@ jobs:
113113
condition: and(succeededOrFailed(), eq(variables['RunRecordedTests'], 'true'))
114114
inputs:
115115
testResultsFiles: "$(Build.ArtifactStagingDirectory)/recordedTestResults/*.trx"
116-
testRunTitle: "recorded-${{ parameters.OSName }}-$(Architecture)"
116+
testRunTitle: "recorded_$(System.JobName)"
117117
testResultsFormat: "VSTest"
118118
mergeTestResults: true
119119

eng/scripts/New-BuildInfo.ps1

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,9 @@ function Get-BuildMatrices {
558558
$runRecordedTests = $runUnitTests -and ($pathsToTest | Where-Object { $_.hasRecordedTests } | Measure-Object | Select-Object -ExpandProperty Count) -gt 0
559559

560560
$buildMatrix[$legName] = [ordered]@{
561-
PlatformName = $platform.name
561+
BuildPlatformName = $platform.name
562562
Pool = $pool
563563
OSVmImage = $vmImage
564-
Architecture = $arch
565-
Native = $platform.native
566-
Trimmed = $platform.trimmed
567564
RunUnitTests = $runUnitTests
568565
RunRecordedTests = $runRecordedTests
569566
}

0 commit comments

Comments
 (0)