File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,20 @@ class PackageProps {
90
90
$result = [PSCustomObject ]@ {
91
91
ArtifactConfig = [HashTable ]$artifactForCurrentPackage
92
92
MatrixConfigs = @ ()
93
+ AdditionalMatrixConfigs = @ ()
93
94
}
94
95
95
96
# if we know this is the matrix for our file, we should now see if there is a custom matrix config for the package
96
97
$matrixConfigList = GetValueSafelyFrom- Yaml $content @ (" extends" , " parameters" , " MatrixConfigs" )
97
98
98
99
if ($matrixConfigList ) {
99
- $result.MatrixConfigs = $matrixConfigList
100
+ $result.MatrixConfigs += $matrixConfigList
101
+ }
102
+
103
+ $additionalMatrixConfigList = GetValueSafelyFrom- Yaml $content @ (" extends" , " parameters" , " AdditionalMatrixConfigs" )
104
+
105
+ if ($additionalMatrixConfigList ) {
106
+ $result.AdditionalMatrixConfigs += $additionalMatrixConfigList
100
107
}
101
108
102
109
return $result
@@ -123,6 +130,9 @@ class PackageProps {
123
130
$this.CIMatrixConfigs = $ciArtifactResult.MatrixConfigs
124
131
# if this package appeared in this ci file, then we should
125
132
# treat this CI file as the source of the Matrix for this package
133
+ if ($ciArtifactResult.PSObject.Properties.Name -contains " AdditionalMatrixConfigs" -and $ciArtifactResult.AdditionalMatrixConfigs ) {
134
+ $this.CIMatrixConfigs += $ciArtifactResult.AdditionalMatrixConfigs
135
+ }
126
136
break
127
137
}
128
138
}
You can’t perform that action at this time.
0 commit comments