@@ -27,11 +27,11 @@ parameters:
27
27
default : []
28
28
- name : Pool
29
29
type : string
30
- default : azsdk-pool-mms-ubuntu-2004-1es-pt
30
+ default : azsdk-pool-mms-ubuntu-2204-general
31
31
- name : OsVmImage
32
32
type : string
33
- default : azsdk-pool-mms- ubuntu-2004-1espt
34
- - name : OS
33
+ default : ubuntu-22.04
34
+ - name : Os
35
35
type : string
36
36
default : linux
37
37
# This parameter is only necessary if there are multiple invocations of this template within the SAME STAGE.
@@ -42,16 +42,31 @@ parameters:
42
42
- name : PreGenerationSteps
43
43
type : stepList
44
44
default : []
45
+ # Mappings to OS name required at template compile time by 1es pipeline templates
46
+ - name : Pools
47
+ type : object
48
+ default :
49
+ - name : LinuxPool
50
+ os : linux
51
+ - name : LinuxNextPool
52
+ os : linux
53
+ - name : WindowsPool
54
+ os : windows
55
+ - name : MacPool
56
+ os : macOS
45
57
46
58
jobs :
47
59
- job : ${{ parameters.GenerateJobName }}
48
60
variables :
49
- skipComponentGovernanceDetection : true
50
- displayNameFilter : $[ coalesce(variables.jobMatrixFilter, '.*') ]
61
+ - template : /eng/pipelines/templates/variables/image.yml
62
+ - name : skipComponentGovernanceDetection
63
+ value : true
64
+ - name : displayNameFilter
65
+ value : $[ coalesce(variables.jobMatrixFilter, '.*') ]
51
66
pool :
52
67
name : ${{ parameters.Pool }}
53
68
vmImage : ${{ parameters.OsVmImage }}
54
- os : ${{ parameters.OS }}
69
+ os : ${{ parameters.Os }}
55
70
${{ if parameters.DependsOn }} :
56
71
dependsOn : ${{ parameters.DependsOn }}
57
72
steps :
@@ -69,52 +84,56 @@ jobs:
69
84
- ${{ parameters.PreGenerationSteps }}
70
85
71
86
- ${{ each config in parameters.MatrixConfigs }} :
72
- - ${{ if eq(config.GenerateVMJobs, 'true') }} :
73
- - task : Powershell@2
74
- inputs :
75
- pwsh : true
76
- filePath : eng/common/scripts/job-matrix/Create-JobMatrix.ps1
77
- arguments : >
78
- -ConfigPath ${{ config.Path }}
79
- -Selection ${{ config.Selection }}
80
- -DisplayNameFilter '$(displayNameFilter)'
81
- -Filters '${{ join(''',''', parameters.MatrixFilters) }}','container=^$','SupportedClouds=^$|${{ parameters.CloudConfig.Cloud }}'
82
- -Replace '${{ join(''',''', parameters.MatrixReplace) }}'
83
- -NonSparseParameters '${{ join(''',''', config.NonSparseParameters) }}'
84
- displayName : Generate VM Job Matrix ${{ config.Name }}
85
- name : generate_vm_job_matrix_${{ config.Name }}
87
+ - ${{ each pool in parameters.Pools }} :
88
+ - ${{ if eq(config.GenerateVMJobs, 'true') }} :
89
+ - task : Powershell@2
90
+ inputs :
91
+ pwsh : true
92
+ filePath : eng/common/scripts/job-matrix/Create-JobMatrix.ps1
93
+ arguments : >
94
+ -ConfigPath ${{ config.Path }}
95
+ -Selection ${{ config.Selection }}
96
+ -DisplayNameFilter '$(displayNameFilter)'
97
+ -Filters '${{ join(''',''', parameters.MatrixFilters) }}', 'container=^$', 'SupportedClouds=^$|${{ parameters.CloudConfig.Cloud }}', 'Pool=.*${{ pool.name }}$'
98
+ -Replace '${{ join(''',''', parameters.MatrixReplace) }}'
99
+ -NonSparseParameters '${{ join(''',''', config.NonSparseParameters) }}'
100
+ displayName : Create ${{ pool.name }} Matrix ${{ config.Name }}
101
+ name : vm_job_matrix_${{ config.Name }}_${{ pool.name }}
86
102
87
- - ${{ if eq(config.GenerateContainerJobs, 'true') }} :
88
- - task : Powershell@2
89
- inputs :
90
- pwsh : true
91
- filePath : eng/common/scripts/job-matrix/Create-JobMatrix.ps1
92
- arguments : >
93
- -ConfigPath ${{ config.Path }}
94
- -Selection ${{ config.Selection }}
95
- -DisplayNameFilter '$(displayNameFilter)'
96
- -Filters '${{ join(''',''', parameters.MatrixFilters) }}', 'container=.* ', 'SupportedClouds=^$|${{ parameters.CloudConfig.Cloud }}'
97
- -NonSparseParameters '${{ join(''',''', config.NonSparseParameters) }}'
98
- displayName : Generate Container Job Matrix
99
- name : generate_container_job_matrix_ ${{ config.Name }}
103
+ - ${{ if eq(config.GenerateContainerJobs, 'true') }} :
104
+ - task : Powershell@2
105
+ inputs :
106
+ pwsh : true
107
+ filePath : eng/common/scripts/job-matrix/Create-JobMatrix.ps1
108
+ arguments : >
109
+ -ConfigPath ${{ config.Path }}
110
+ -Selection ${{ config.Selection }}
111
+ -DisplayNameFilter '$(displayNameFilter)'
112
+ -Filters '${{ join(''',''', parameters.MatrixFilters) }}', 'container=^$ ', 'SupportedClouds=^$|${{ parameters.CloudConfig.Cloud }}', 'Pool=.*${{ pool.name }}$ '
113
+ -NonSparseParameters '${{ join(''',''', config.NonSparseParameters) }}'
114
+ displayName : Create ${{ pool.name }} Container Matrix ${{ config.Name }}
115
+ name : container_job_matrix_ ${{ config.Name }}_${{ pool.name }}
100
116
101
117
- ${{ each config in parameters.MatrixConfigs }} :
102
- - ${{ if eq(config.GenerateVMJobs, 'true') }} :
103
- - template : ${{ parameters.JobTemplatePath }}
104
- parameters :
105
- UsePlatformContainer : false
106
- Matrix : dependencies.${{ parameters.GenerateJobName }}.outputs['generate_vm_job_matrix_${{ config.Name }}.matrix']
107
- DependsOn : ${{ parameters.GenerateJobName }}
108
- CloudConfig : ${{ parameters.CloudConfig }}
109
- ${{ each param in parameters.AdditionalParameters }} :
110
- ${{ param.key }} : ${{ param.value }}
118
+ - ${{ each pool in parameters.Pools }} :
119
+ - ${{ if eq(config.GenerateVMJobs, 'true') }} :
120
+ - template : ${{ parameters.JobTemplatePath }}
121
+ parameters :
122
+ UsePlatformContainer : false
123
+ OSName : ${{ pool.os }}
124
+ Matrix : dependencies.${{ parameters.GenerateJobName }}.outputs['vm_job_matrix_${{ config.Name }}_${{ pool.name }}.matrix']
125
+ DependsOn : ${{ parameters.GenerateJobName }}
126
+ CloudConfig : ${{ parameters.CloudConfig }}
127
+ ${{ each param in parameters.AdditionalParameters }} :
128
+ ${{ param.key }} : ${{ param.value }}
111
129
112
- - ${{ if eq(config.GenerateContainerJobs, 'true') }} :
113
- - template : ${{ parameters.JobTemplatePath }}
114
- parameters :
115
- UsePlatformContainer : true
116
- Matrix : dependencies.${{ parameters.GenerateJobName }}.outputs['generate_container_job_matrix_${{ config.Name }}.matrix']
117
- DependsOn : ${{ parameters.GenerateJobName }}
118
- CloudConfig : ${{ parameters.CloudConfig }}
119
- ${{ each param in parameters.AdditionalParameters }} :
120
- ${{ param.key }} : ${{ param.value }}
130
+ - ${{ if eq(config.GenerateContainerJobs, 'true') }} :
131
+ - template : ${{ parameters.JobTemplatePath }}
132
+ parameters :
133
+ UsePlatformContainer : true
134
+ OSName : ${{ pool.os }}
135
+ Matrix : dependencies.${{ parameters.GenerateJobName }}.outputs['vm_job_matrix_${{ config.Name }}_${{ pool.name }}.matrix']
136
+ DependsOn : ${{ parameters.GenerateJobName }}
137
+ CloudConfig : ${{ parameters.CloudConfig }}
138
+ ${{ each param in parameters.AdditionalParameters }} :
139
+ ${{ param.key }} : ${{ param.value }}
0 commit comments