@@ -53,11 +53,14 @@ stages:
5353 - template : /eng/common/templates/jobs/jobs.yml
5454 parameters :
5555 enableMicrobuild : true
56- enablePublishBuildArtifacts : true
5756 enablePublishTestResults : true
5857 testResultsFormat : ' vstest'
59- enablePublishBuildAssets : true
6058 enablePublishUsingPipelines : true
59+ artifacts :
60+ publish :
61+ artifacts : true
62+ logs : true
63+ manifests : true
6164 enableTelemetry : true
6265 jobs :
6366 - job : Windows
@@ -113,13 +116,6 @@ stages:
113116 name : Build
114117 displayName : Build
115118
116- - task : PublishBuildArtifacts@1
117- displayName : ' Publish NuGet packages'
118- inputs :
119- PathtoPublish : ' $(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)/Shipping'
120- ArtifactName : ' $(Agent.Os)_$(Agent.JobName)_Attempt$(System.JobAttempt)'
121- condition : always()
122-
123119 - ${{ if eq(parameters.SkipTests, False) }} :
124120
125121 # Because the build step is using -ci flag, restore is done in a local .packages directory.
@@ -171,34 +167,6 @@ stages:
171167 ArtifactName : TestResults_Windows_$(_BuildConfig)
172168 condition : failed()
173169
174- - job : WindowsSamples
175- timeoutInMinutes : 30
176- pool :
177- name : NetCore-Public
178- demands : ImageOverride -equals windows.vs2026preview.scout.amd64.open
179- strategy :
180- matrix :
181- Release :
182- _BuildConfig : Release
183- Debug :
184- _BuildConfig : Debug
185- steps :
186- - task : PowerShell@2
187- displayName : ' Install Windows SDK'
188- inputs :
189- targetType : filePath
190- filePath : ' ./eng/install-windows-sdk.ps1'
191- failOnStderr : true
192- showWarnings : true
193-
194- - task : PowerShell@2
195- displayName : ' Build Samples'
196- inputs :
197- targetType : filePath
198- filePath : ' ./eng/build-samples.ps1'
199- arguments : ' -Configuration $(_BuildConfig) -TreatWarningsAsErrors -BinaryLogDirectory "$(Build.SourcesDirectory)\artifacts\log\$(_BuildConfig)"'
200- failOnStderr : false
201-
202170 - job : Linux
203171 timeoutInMinutes : 90
204172 pool :
@@ -220,13 +188,6 @@ stages:
220188 /p:FastAcceptanceTest=true
221189 displayName : Build
222190
223- - task : PublishBuildArtifacts@1
224- displayName : ' Publish NuGet packages'
225- inputs :
226- PathtoPublish : ' $(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)/Shipping'
227- ArtifactName : ' $(Agent.Os)_$(Agent.JobName)_Attempt$(System.JobAttempt)'
228- condition : always()
229-
230191 - ${{ if eq(parameters.SkipTests, False) }} :
231192 # Because the build step is using -ci flag, restore is done in a local .packages directory.
232193 # We need to pass NUGET_PACKAGES so that when dotnet test is doing evaluation phase on the projects, it can resolve .props/.targets from packages and import them.
@@ -284,13 +245,6 @@ stages:
284245 /p:FastAcceptanceTest=true
285246 displayName : Build
286247
287- - task : PublishBuildArtifacts@1
288- displayName : ' Publish NuGet packages'
289- inputs :
290- PathtoPublish : ' $(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)/Shipping'
291- ArtifactName : ' $(Agent.Os)_$(Agent.JobName)_Attempt$(System.JobAttempt)'
292- condition : always()
293-
294248 - ${{ if eq(parameters.SkipTests, False) }} :
295249 # Because the build step is using -ci flag, restore is done in a local .packages directory.
296250 # We need to pass NUGET_PACKAGES so that when dotnet test is doing evaluation phase on the projects, it can resolve .props/.targets from packages and import them.
@@ -325,3 +279,41 @@ stages:
325279 PathtoPublish : ' $(Build.ArtifactStagingDirectory)/binlogs'
326280 ArtifactName : Integration_Tests_MacOS_Binlogs_$(_BuildConfig)
327281 condition : always()
282+
283+ - template : /eng/common/templates/jobs/jobs.yml
284+ parameters :
285+ enableMicrobuild : true
286+ enablePublishUsingPipelines : true
287+ artifacts :
288+ publish :
289+ logs : true
290+ manifests : true
291+ enableTelemetry : true
292+ jobs :
293+ - job : WindowsSamples
294+ timeoutInMinutes : 30
295+ pool :
296+ name : NetCore-Public
297+ demands : ImageOverride -equals windows.vs2026preview.scout.amd64.open
298+ strategy :
299+ matrix :
300+ Release :
301+ _BuildConfig : Release
302+ Debug :
303+ _BuildConfig : Debug
304+ steps :
305+ - task : PowerShell@2
306+ displayName : ' Install Windows SDK'
307+ inputs :
308+ targetType : filePath
309+ filePath : ' ./eng/install-windows-sdk.ps1'
310+ failOnStderr : true
311+ showWarnings : true
312+
313+ - task : PowerShell@2
314+ displayName : ' Build Samples'
315+ inputs :
316+ targetType : filePath
317+ filePath : ' ./eng/build-samples.ps1'
318+ arguments : ' -Configuration $(_BuildConfig) -TreatWarningsAsErrors -BinaryLogDirectory "$(Build.SourcesDirectory)\artifacts\log\$(_BuildConfig)"'
319+ failOnStderr : false
0 commit comments