@@ -29,14 +29,17 @@ parameters:
2929- name : artifact_names
3030 type : object
3131 default :
32- - build_logs
33- - coverageResults
34- - deployables
35- - projectAssetsJson
36- - symbols
37- - testResults
38- - test_symbols
39- - Variables
32+ - name : build_logs
33+ - name : coverageResults
34+ - name : deployables
35+ sbomEnabled : true
36+ - name : projectAssetsJson
37+ - name : symbols
38+ - name : testResults
39+ testOnly : true
40+ - name : test_symbols
41+ testOnly : true
42+ - name : Variables
4043# The Enable*Build parameters turn non-Windows agents on or off.
4144# Their default value should be based on whether the build and tests are expected/required to pass on that platform.
4245# Callers (e.g. Official.yml) *may* expose these parameters at queue-time in order to turn OFF optional agents.
@@ -57,6 +60,11 @@ parameters:
5760- name : Is1ESPT
5861 type : boolean
5962
63+ # Indicates whether the 'official' 1ES PT templates are being used (as opposed to the unofficial ones).
64+ - name : Is1ESPTOfficial
65+ type : boolean
66+ default : false
67+
6068- name : RealSign
6169 type : boolean
6270 default : false
@@ -150,12 +158,14 @@ jobs:
150158
151159 outputParentDirectory : $(Build.ArtifactStagingDirectory)
152160 outputs :
153- - ${{ each artifact_name in parameters.artifact_names }} :
154- - ${{ if or(ne(artifact_name , 'testResults '), parameters.RunTests) }} :
161+ - ${{ each artifact in parameters.artifact_names }} :
162+ - ${{ if or(ne(artifact.testOnly , 'true '), parameters.RunTests) }} :
155163 - output : pipelineArtifact
156- displayName : 📢 Publish ${{ artifact_name }}-Windows
157- targetPath : $(Build.ArtifactStagingDirectory)/${{ artifact_name }}-Windows
158- artifactName : ${{ artifact_name }}-Windows
164+ displayName : 📢 Publish ${{ artifact.name }}-Windows
165+ targetPath : $(Build.ArtifactStagingDirectory)/${{ artifact.name }}-Windows
166+ artifactName : ${{ artifact.name }}-Windows
167+ ${{ if and(parameters.Is1ESPTOfficial, eq(artifact.sbomEnabled, 'true')) }} :
168+ sbomEnabled : true
159169 condition : succeededOrFailed()
160170 - output : pipelineArtifact
161171 displayName : 📢 Publish VSInsertion-Windows
@@ -193,7 +203,6 @@ jobs:
193203 - template : microbuild.before.yml
194204 parameters :
195205 EnableLocalization : ${{ parameters.EnableLocalization }}
196- EnableOptProf : ${{ parameters.EnableOptProf }}
197206 IsOptProf : ${{ parameters.IsOptProf }}
198207 ShouldSkipOptimize : ${{ parameters.ShouldSkipOptimize }}
199208 RealSign : ${{ parameters.RealSign }}
@@ -213,7 +222,6 @@ jobs:
213222 - ${{ if eq(variables['system.collectionId'], '011b8bdf-6d56-4f87-be0d-0092136884d9') }} :
214223 - template : microbuild.after.yml
215224 parameters :
216- EnableOptProf : ${{ parameters.EnableOptProf }}
217225 IsOptProf : ${{ parameters.IsOptProf }}
218226 SkipCodesignVerify : ${{ parameters.SkipCodesignVerify }}
219227
@@ -234,12 +242,14 @@ jobs:
234242 signWithProd : true
235243 outputParentDirectory : $(Build.ArtifactStagingDirectory)
236244 outputs :
237- - ${{ each artifact_name in parameters.artifact_names }} :
238- - ${{ if or(ne(artifact_name , 'testResults '), parameters.RunTests) }} :
245+ - ${{ each artifact in parameters.artifact_names }} :
246+ - ${{ if or(ne(artifact.testOnly , 'true '), parameters.RunTests) }} :
239247 - output : pipelineArtifact
240- displayName : 📢 Publish ${{ artifact_name }}-Linux
241- targetPath : $(Build.ArtifactStagingDirectory)/${{ artifact_name }}-Linux
242- artifactName : ${{ artifact_name }}-Linux
248+ displayName : 📢 Publish ${{ artifact.name }}-Linux
249+ targetPath : $(Build.ArtifactStagingDirectory)/${{ artifact.name }}-Linux
250+ artifactName : ${{ artifact.name }}-Linux
251+ ${{ if and(parameters.Is1ESPTOfficial, eq(artifact.sbomEnabled, 'true')) }} :
252+ sbomEnabled : true
243253 condition : succeededOrFailed()
244254 steps :
245255 - checkout : self
@@ -273,12 +283,14 @@ jobs:
273283 signWithProd : true
274284 outputParentDirectory : $(Build.ArtifactStagingDirectory)
275285 outputs :
276- - ${{ each artifact_name in parameters.artifact_names }} :
277- - ${{ if or(ne(artifact_name , 'testResults '), parameters.RunTests) }} :
286+ - ${{ each artifact in parameters.artifact_names }} :
287+ - ${{ if or(ne(artifact.testOnly , 'true '), parameters.RunTests) }} :
278288 - output : pipelineArtifact
279- displayName : 📢 Publish ${{ artifact_name }}-macOS
280- targetPath : $(Build.ArtifactStagingDirectory)/${{ artifact_name }}-macOS
281- artifactName : ${{ artifact_name }}-macOS
289+ displayName : 📢 Publish ${{ artifact.name }}-macOS
290+ targetPath : $(Build.ArtifactStagingDirectory)/${{ artifact.name }}-macOS
291+ artifactName : ${{ artifact.name }}-macOS
292+ ${{ if and(parameters.Is1ESPTOfficial, eq(artifact.sbomEnabled, 'true')) }} :
293+ sbomEnabled : true
282294 condition : succeededOrFailed()
283295 steps :
284296 - checkout : self
0 commit comments