@@ -398,24 +398,8 @@ private async Task UploadBuildDefinitionBlobAsync(string account, BuildDefinitio
398398 Path = definition . Path ,
399399 RepositoryId = definition . Repository . Id ,
400400 RepositoryName = definition . Repository . Name ,
401- AuthoredByDescriptor = definition . AuthoredBy . Descriptor . ToString ( ) ,
402- AuthoredByDisplayName = definition . AuthoredBy . DisplayName ,
403- AuthoredById = definition . AuthoredBy . Id ,
404- AuthoredByIsContainer = definition . AuthoredBy . IsContainer ,
405- AuthoredByUniqueName = definition . AuthoredBy . UniqueName ,
406401 CreatedDate = definition . CreatedDate ,
407402 DefaultBranch = definition . Repository . DefaultBranch ,
408- DraftOfId = default ( string ) ,
409- DraftOfName = default ( string ) ,
410- DraftOfProjectId = default ( string ) ,
411- DraftOfProjectName = default ( string ) ,
412- DraftOfProjectRevision = default ( string ) ,
413- DraftOfProjectState = default ( string ) ,
414- DraftOfProjectVisibility = default ( string ) ,
415- DraftOfQueueStatus = default ( string ) ,
416- DraftOfRevision = default ( string ) ,
417- DraftOfType = default ( string ) ,
418- DraftOfUri = default ( string ) ,
419403 ProjectName = definition . Project . Name ,
420404 ProjectRevision = definition . Project . Revision ,
421405 ProjectState = definition . Project . State ,
@@ -427,7 +411,7 @@ private async Task UploadBuildDefinitionBlobAsync(string account, BuildDefinitio
427411 QueuePoolName = definition . Queue ? . Pool ? . Name ,
428412 QueueStatus = definition . QueueStatus ,
429413 Type = definition . Type ,
430- Uri = definition . Uri ,
414+ Url = $ "https://dev.azure.com/ { account } / { definition . Project . Name } /_build?definitionId= { definition . Id } " ,
431415 BadgeEnabled = definition . BadgeEnabled ,
432416 BuildNumberFormat = definition . BuildNumberFormat ,
433417 Comment = definition . Comment ,
@@ -445,7 +429,7 @@ private async Task UploadBuildDefinitionBlobAsync(string account, BuildDefinitio
445429 Options = definition . Options ,
446430 Variables = definition . Variables ,
447431 Tags = definition . Tags ,
448- Data = definition ,
432+ Triggers = definition . Triggers ,
449433 EtlIngestDate = DateTimeOffset . UtcNow
450434 } , jsonSettings ) ;
451435
@@ -548,10 +532,6 @@ private async Task UploadBuildBlobAsync(string account, Build build)
548532 StartTime = build . StartTime ,
549533 FinishTime = build . FinishTime ,
550534 KeepForever = build . KeepForever ,
551- LastChangedByDisplayName = build . LastChangedBy ? . DisplayName ,
552- LastChangedById = build . LastChangedBy ? . Id ,
553- LastChangedByIsContainer = build . LastChangedBy ? . IsContainer ,
554- LastChangedByUniqueName = build . LastChangedBy ? . UniqueName ,
555535 LastChangedDate = build . LastChangedDate ,
556536 LogsId = build . Logs ? . Id ,
557537 LogsType = build . Logs ? . Type ,
@@ -569,23 +549,14 @@ private async Task UploadBuildBlobAsync(string account, Build build)
569549 Reason = build . Reason ,
570550 RepositoryCheckoutSubmodules = build . Repository ? . CheckoutSubmodules ,
571551 RepositoryType = build . Repository ? . Type ,
572- RequestedByDisplayName = build . RequestedBy ? . DisplayName ,
573- RequestedById = build . RequestedBy ? . Id ,
574- RequestedByIsContainer = build . RequestedBy ? . IsContainer ,
575- RequestedByUniqueName = build . RequestedBy ? . UniqueName ,
576- RequestedForDisplayName = build . RequestedFor ? . DisplayName ,
577- RequestedForId = build . RequestedFor ? . Id ,
578- RequestedForIsContainer = build . RequestedFor ? . IsContainer ,
579- RequestedForUniqueName = build . RequestedFor ? . UniqueName ,
580552 Result = build . Result ,
581553 RetainedByRelease = build . RetainedByRelease ,
582554 SourceBranch = build . SourceBranch ,
583555 SourceVersion = build . SourceVersion ,
584556 Status = build . Status ,
585557 Tags = build . Tags ? . Any ( ) == true ? JsonConvert . SerializeObject ( build . Tags , jsonSettings ) : null ,
586- Uri = build . Uri ,
558+ Url = $ "https://dev.azure.com/ { account } / { build . Project . Name } /_build/results?buildId= { build . Id } " ,
587559 ValidationResults = build . ValidationResults ,
588- Data = JsonConvert . SerializeObject ( build , jsonSettings ) ,
589560 EtlIngestDate = DateTime . UtcNow ,
590561 } , jsonSettings ) ;
591562
@@ -869,7 +840,6 @@ private async Task UploadTestRunBlobAsync(string account, Build build, TestRun t
869840 : testRun . Release ? . Id > 0 ? "Release"
870841 : "" ,
871842 OrganizationId = default ( string ) ,
872- Data = default ( string ) ,
873843 EtlIngestDate = DateTime . UtcNow ,
874844 } , jsonSettings ) ;
875845
0 commit comments