@@ -45,9 +45,9 @@ parameters:
45
45
- name : EnablePRGeneration
46
46
type : boolean
47
47
default : false
48
- - name : PRMatrix
49
- type : object
50
- # Mappings to OS name required at template compile time by 1es pipeline templates
48
+ - name : PRMatrixSetting
49
+ type : string
50
+ default : ' ArtifactPackageNames '
51
51
- name : Pools
52
52
type : object
53
53
default :
@@ -124,16 +124,16 @@ jobs:
124
124
# Not currently not hardcoded, so not doing the needful and populating this folder before we hit this step will result in generation errors.
125
125
- ${{ else }} :
126
126
- ${{ each pool in parameters.Pools }} :
127
- - task : Powershell@2
128
- inputs :
129
- pwsh : true
130
- filePath : eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1
131
- arguments : >
132
- -PackagePropertiesFolder $(Build.ArtifactStagingDirectory)/PackageInfo
133
- -PRMatrixFile ${{ parameters.PRMatrix.Path }}
134
- -PRMatrixSetting ${{ parameters.PRMatrix.Setting }}
135
- -DisplayNameFilter '$(displayNameFilter)'
136
- -Filters '${{ join(''',''', parameters.MatrixFilters) }}', 'container=^$', 'SupportedClouds=^$|${{ parameters.CloudConfig.Cloud }}', 'Pool=${{ pool.filter }}'
127
+ - pwsh : |
128
+ # dump the conglomerated CI matrix
129
+ '${{ convertToJson(parameters.MatrixConfigs) }}' | Set-Content matrix.json
130
+
131
+ ./eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1 `
132
+ -PackagePropertiesFolder $(Build.ArtifactStagingDirectory)/PackageInfo `
133
+ -PRMatrixFile matrix.json `
134
+ -PRMatrixSetting ${{ parameters.PRMatrixSetting }} `
135
+ -DisplayNameFilter '$(displayNameFilter)' `
136
+ -Filters '${{ join(''',''', parameters.MatrixFilters) }}', 'container=^$', 'SupportedClouds=^$|${{ parameters.CloudConfig.Cloud }}', 'Pool=${{ pool.filter }}' `
137
137
-Replace '${{ join(''',''', parameters.MatrixReplace) }}'
138
138
displayName: Create ${{ pool.name }} PR Matrix
139
139
name: vm_job_matrix_pr_${{ pool.name }}
0 commit comments