From caac0070d79efe6c16e5107d7df3f7ef0a04aca5 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 13 Oct 2025 15:14:54 -0700 Subject: [PATCH] Use write-output for matrix script to support upstream callers (#6783) Co-authored-by: Ben Broderick Phillips --- eng/common/scripts/job-matrix/Create-JobMatrix.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eng/common/scripts/job-matrix/Create-JobMatrix.ps1 b/eng/common/scripts/job-matrix/Create-JobMatrix.ps1 index d35b3c923..2ca67e92a 100644 --- a/eng/common/scripts/job-matrix/Create-JobMatrix.ps1 +++ b/eng/common/scripts/job-matrix/Create-JobMatrix.ps1 @@ -54,7 +54,9 @@ LogGroupEnd $serialized = SerializePipelineMatrix $matrix Write-Host "Generated matrix:" -Write-Host $serialized.pretty + +# Write-Output required to support other scripts that call this script directly +Write-Output $serialized.pretty if ($CI) { Write-Output "##vso[task.setVariable variable=matrix;isOutput=true]$($serialized.compressed)"