1
+ parameters :
2
+ - name : CommitTitle
3
+ displayName : ' Title of the commit that trigger batch generation'
4
+ type : string
5
+ default : ' Default commit title'
6
+
1
7
variables :
2
8
IntermediateStepTimeoutInMinutes : 30
3
9
GenerateTimeoutInMinutes : 120
@@ -98,7 +104,7 @@ stages:
98
104
git checkout "${{ variables.GenerationBranch }}"
99
105
100
106
$batchGenerateModulesPath = Join-Path "$(Build.SourcesDirectory)" '.azure-pipelines' 'PipelineSteps' 'BatchGeneration' 'batch-generate-modules.ps1'
101
- & $batchGenerateModulesPath -MatrixKey "$(MatrixKey)" -RepoRoot "$(Build.SourcesDirectory)"
107
+ & $batchGenerateModulesPath -MatrixKey "$(MatrixKey)" -RepoRoot "$(Build.SourcesDirectory)" -CommitTitle "${{ parameters.CommitTitle }}"
102
108
103
109
workingDirectory : $(Build.SourcesDirectory)
104
110
@@ -159,7 +165,7 @@ stages:
159
165
}
160
166
161
167
git add .
162
- git commit -m "Apply matrix job patches to ${{ variables.GenerationBranch }}"
168
+ git commit -m "Apply batch generation patches to ${{ variables.GenerationBranch }}"
163
169
git push origin "${{ variables.GenerationBranch }}"
164
170
165
171
- task : PowerShell@2
@@ -176,7 +182,14 @@ stages:
176
182
git checkout $sourceBranchName
177
183
178
184
$filterModulesPath = Join-Path "$(Build.SourcesDirectory)" '.azure-pipelines' 'PipelineSteps' 'BatchGeneration' 'filter.ps1'
179
- & $filterModulesPath -MaxParallelBuildJobs "${{ variables.MaxParallelBuildJobs }}" -MaxParallelAnalyzeJobs "${{ variables.MaxParallelAnalyzeJobs }}" -MaxParallelTestWindowsJobs "${{ variables.MaxParallelTestWindowsJobs }}" -MaxParallelTestLinuxJobs "${{ variables.MaxParallelTestLinuxJobs }}" -MaxParallelTestMacJobs "${{ variables.MaxParallelTestMacJobs }}" -ChangedFiles $changedFiles -RepoRoot "$(Build.SourcesDirectory)"
185
+ & $filterModulesPath `
186
+ -MaxParallelBuildJobs "${{ variables.MaxParallelBuildJobs }}" `
187
+ -MaxParallelAnalyzeJobs "${{ variables.MaxParallelAnalyzeJobs }}" `
188
+ -MaxParallelTestWindowsJobs "${{ variables.MaxParallelTestWindowsJobs }}" `
189
+ -MaxParallelTestLinuxJobs "${{ variables.MaxParallelTestLinuxJobs }}" `
190
+ -MaxParallelTestMacJobs "${{ variables.MaxParallelTestMacJobs }}" `
191
+ -ChangedFiles $changedFiles `
192
+ -RepoRoot "$(Build.SourcesDirectory)"
180
193
env :
181
194
RUN_TEST_ON_ALL_MODULES : $(RUN_TEST_ON_ALL_MODULES)
182
195
0 commit comments