Skip to content

Commit 20fee46

Browse files
azure-sdkscbedd
andauthored
Sync eng/common directory with azure-sdk-tools for PR 9945 (Azure#39925)
* allow skipping of batching during Create-PRJobMatrix --------- Co-authored-by: Scott Beddall <[email protected]>
1 parent 31c4a1b commit 20fee46

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,16 @@ function GeneratePRMatrixForBatch {
144144
}
145145
}
146146

147+
if ($matrixConfig.PSObject.Properties['PRBatching']) {
148+
# if we are doing a PR Batch, we need to just add the matrix items directly to the OverallResult
149+
# as the users have explicitly disabled PR batching for this matrix.
150+
if (!$matrixConfig.PRBatching) {
151+
Write-Host "The matrix config $($matrixConfig.Path) with name $($matrixConfig.Name) has PRBatch set to false, the matrix members will be directly added without batching by $PRMatrixSetting."
152+
$OverallResult += $matrixResults
153+
continue
154+
}
155+
}
156+
147157
$packageBatches = Split-ArrayIntoBatches -InputArray $matrixBatch -BatchSize $BATCHSIZE
148158

149159
# we only need to modify the generated job name if there is more than one matrix config + batch

0 commit comments

Comments
 (0)