@@ -228,6 +228,9 @@ stages:
228
228
229
229
- script : eng\CIBuild.cmd -compressallmetadata -configuration Release /p:FSharpLangVersion=preview
230
230
env :
231
+ DOTNET_DbgEnableMiniDump : 1
232
+ DOTNET_DbgMiniDumpType : 3 # Triage dump, 1 for mini, 2 for Heap, 3 for triage, 4 for full. Don't use 4 unless you know what you're doing.
233
+ DOTNET_DbgMiniDumpName : $(Build.SourcesDirectory)\artifacts\log\$(_configuration)\$(Build.BuildId)-%e-%p-%t.dmp
231
234
NativeToolsOnMachine : true
232
235
displayName : Build
233
236
@@ -240,6 +243,15 @@ stages:
240
243
ArtifactName : ' Windows Release build binlogs'
241
244
ArtifactType : Container
242
245
parallel : true
246
+ - task : PublishBuildArtifacts@1
247
+ displayName : Publish Dumps
248
+ condition : failed()
249
+ continueOnError : true
250
+ inputs :
251
+ PathToPublish : ' $(Build.SourcesDirectory)\artifacts\log\$(_configuration)'
252
+ ArtifactName : ' Windows $(_configuration) $(_testKind) process dumps'
253
+ ArtifactType : Container
254
+ parallel : true
243
255
244
256
- job : WindowsNoRealsig_testCoreclr
245
257
pool :
@@ -256,6 +268,9 @@ stages:
256
268
257
269
- script : eng\CIBuild.cmd -compressallmetadata -buildnorealsig -testCoreclr -configuration Release
258
270
env :
271
+ DOTNET_DbgEnableMiniDump : 1
272
+ DOTNET_DbgMiniDumpType : 3 # Triage dump, 1 for mini, 2 for Heap, 3 for triage, 4 for full. Don't use 4 unless you know what you're doing.
273
+ DOTNET_DbgMiniDumpName : $(Build.SourcesDirectory)\artifacts\log\$(_configuration)\$(Build.BuildId)-%e-%p-%t.dmp
259
274
NativeToolsOnMachine : true
260
275
displayName : Build
261
276
@@ -268,6 +283,15 @@ stages:
268
283
ArtifactName : ' Windows Release build binlogs'
269
284
ArtifactType : Container
270
285
parallel : true
286
+ - task : PublishBuildArtifacts@1
287
+ displayName : Publish Dumps
288
+ condition : failed()
289
+ continueOnError : true
290
+ inputs :
291
+ PathToPublish : ' $(Build.SourcesDirectory)\artifacts\log\$(_configuration)'
292
+ ArtifactName : ' Windows $(_configuration) $(_testKind) process dumps'
293
+ ArtifactType : Container
294
+ parallel : true
271
295
272
296
- job : WindowsNoRealsig_testDesktop
273
297
pool :
@@ -284,6 +308,9 @@ stages:
284
308
285
309
- script : eng\CIBuild.cmd -compressallmetadata -buildnorealsig -testDesktop -configuration Release
286
310
env :
311
+ DOTNET_DbgEnableMiniDump : 1
312
+ DOTNET_DbgMiniDumpType : 3 # Triage dump, 1 for mini, 2 for Heap, 3 for triage, 4 for full. Don't use 4 unless you know what you're doing.
313
+ DOTNET_DbgMiniDumpName : $(Build.SourcesDirectory)\artifacts\log\$(_configuration)\$(Build.BuildId)-%e-%p-%t.dmp
287
314
NativeToolsOnMachine : true
288
315
displayName : Build
289
316
@@ -296,6 +323,15 @@ stages:
296
323
ArtifactName : ' Windows Release build binlogs'
297
324
ArtifactType : Container
298
325
parallel : true
326
+ - task : PublishBuildArtifacts@1
327
+ displayName : Publish Dumps
328
+ condition : failed()
329
+ continueOnError : true
330
+ inputs :
331
+ PathToPublish : ' $(Build.SourcesDirectory)\artifacts\log\$(_configuration)'
332
+ ArtifactName : ' Windows $(_configuration) $(_testKind) process dumps'
333
+ ArtifactType : Container
334
+ parallel : true
299
335
300
336
- job : WindowsStrictIndentation
301
337
pool :
@@ -312,6 +348,9 @@ stages:
312
348
313
349
- script : eng\CIBuild.cmd -compressallmetadata -configuration Release /p:AdditionalFscCmdFlags=--strict-indentation+
314
350
env :
351
+ DOTNET_DbgEnableMiniDump : 1
352
+ DOTNET_DbgMiniDumpType : 3 # Triage dump, 1 for mini, 2 for Heap, 3 for triage, 4 for full. Don't use 4 unless you know what you're doing.
353
+ DOTNET_DbgMiniDumpName : $(Build.SourcesDirectory)\artifacts\log\$(_configuration)\$(Build.BuildId)-%e-%p-%t.dmp
315
354
NativeToolsOnMachine : true
316
355
displayName : Build
317
356
@@ -324,6 +363,15 @@ stages:
324
363
ArtifactName : ' Windows Release build binlogs'
325
364
ArtifactType : Container
326
365
parallel : true
366
+ - task : PublishBuildArtifacts@1
367
+ displayName : Publish Dumps
368
+ condition : failed()
369
+ continueOnError : true
370
+ inputs :
371
+ PathToPublish : ' $(Build.SourcesDirectory)\artifacts\log\$(_configuration)'
372
+ ArtifactName : ' Windows $(_configuration) $(_testKind) process dumps'
373
+ ArtifactType : Container
374
+ parallel : true
327
375
328
376
- job : WindowsNoStrictIndentation
329
377
pool :
@@ -336,6 +384,9 @@ stages:
336
384
337
385
- script : eng\CIBuild.cmd -compressallmetadata -configuration Release /p:AdditionalFscCmdFlags=--strict-indentation-
338
386
env :
387
+ DOTNET_DbgEnableMiniDump : 1
388
+ DOTNET_DbgMiniDumpType : 3 # Triage dump, 1 for mini, 2 for Heap, 3 for triage, 4 for full. Don't use 4 unless you know what you're doing.
389
+ DOTNET_DbgMiniDumpName : $(Build.SourcesDirectory)\artifacts\log\$(_configuration)\$(Build.BuildId)-%e-%p-%t.dmp
339
390
NativeToolsOnMachine : true
340
391
displayName : Build
341
392
@@ -348,6 +399,15 @@ stages:
348
399
ArtifactName : ' Windows Release build binlogs'
349
400
ArtifactType : Container
350
401
parallel : true
402
+ - task : PublishBuildArtifacts@1
403
+ displayName : Publish Dumps
404
+ condition : failed()
405
+ continueOnError : true
406
+ inputs :
407
+ PathToPublish : ' $(Build.SourcesDirectory)\artifacts\log\$(_configuration)'
408
+ ArtifactName : ' Windows $(_configuration) $(_testKind) process dumps'
409
+ ArtifactType : Container
410
+ parallel : true
351
411
352
412
# Windows With Compressed Metadata
353
413
- job : WindowsCompressedMetadata
@@ -398,19 +458,28 @@ stages:
398
458
# yes, this is miserable, but - https://github.com/dotnet/arcade/issues/13239
399
459
- script : eng\CIBuild.cmd -compressallmetadata -configuration $(_configuration) -$(_testKind)
400
460
env :
461
+ DOTNET_DbgEnableMiniDump : 1
462
+ DOTNET_DbgMiniDumpType : 3 # Triage dump, 1 for mini, 2 for Heap, 3 for triage, 4 for full. Don't use 4 unless you know what you're doing.
463
+ DOTNET_DbgMiniDumpName : $(Build.SourcesDirectory)\artifacts\log\$(_configuration)\$(Build.BuildId)-%e-%p-%t.dmp
401
464
NativeToolsOnMachine : true
402
465
displayName : Build / Test
403
466
condition : and( ne(variables['_testKind'], 'testIntegration'), ne(variables['System.JobName'], 'transparent_compiler_release') )
404
467
405
468
- script : eng\CIBuild.cmd -compressallmetadata -configuration $(_configuration) -$(_testKind)
406
469
env :
470
+ DOTNET_DbgEnableMiniDump : 1
471
+ DOTNET_DbgMiniDumpType : 3 # Triage dump, 1 for mini, 2 for Heap, 3 for triage, 4 for full. Don't use 4 unless you know what you're doing.
472
+ DOTNET_DbgMiniDumpName : $(Build.SourcesDirectory)\artifacts\log\$(_configuration)\$(Build.BuildId)-%e-%p-%t.dmp
407
473
TEST_TRANSPARENT_COMPILER : 1
408
474
NativeToolsOnMachine : true
409
475
displayName : Build / Test Transparent Compiler
410
476
condition : and( eq(variables['System.JobName'], 'transparent_compiler_release'), ne(variables['_testKind'], 'testIntegration') )
411
477
412
478
- script : eng\CIBuild.cmd -compressallmetadata -configuration $(_configuration) -$(_testKind)
413
479
env :
480
+ DOTNET_DbgEnableMiniDump : 1
481
+ DOTNET_DbgMiniDumpType : 3 # Triage dump, 1 for mini, 2 for Heap, 3 for triage, 4 for full. Don't use 4 unless you know what you're doing.
482
+ DOTNET_DbgMiniDumpName : $(Build.SourcesDirectory)\artifacts\log\$(_configuration)\$(Build.BuildId)-%e-%p-%t.dmp
414
483
NativeToolsOnMachine : true
415
484
displayName : Build / Integration Test
416
485
continueOnError : true
@@ -433,6 +502,15 @@ stages:
433
502
ArtifactName : ' Windows $(_configuration) $(_testKind) test binlogs'
434
503
ArtifactType : Container
435
504
parallel : true
505
+ - task : PublishBuildArtifacts@1
506
+ displayName : Publish Dumps
507
+ condition : failed()
508
+ continueOnError : true
509
+ inputs :
510
+ PathToPublish : ' $(Build.SourcesDirectory)\artifacts\log\$(_configuration)'
511
+ ArtifactName : ' Windows $(_configuration) $(_testKind) process dumps'
512
+ ArtifactType : Container
513
+ parallel : true
436
514
- task : PublishBuildArtifacts@1
437
515
displayName : Publish Test Logs
438
516
inputs :
0 commit comments