@@ -497,7 +497,7 @@ extends:
497
497
timeoutInMinutes : 120
498
498
499
499
# Check - "Xamarin.Android (Prepare .NET Release Convert NuGet to MSI)"
500
- - template : nuget-msi-convert/job/v3 .yml@yaml-templates
500
+ - template : nuget-msi-convert/job/v4 .yml@yaml-templates
501
501
parameters :
502
502
yamlResourceName : yaml-templates
503
503
dependsOn : sign_net_mac_win
@@ -506,32 +506,42 @@ extends:
506
506
!*Darwin*
507
507
propsArtifactName : $(NuGetArtifactName)
508
508
signType : $(MicroBuildSignType)
509
- use1ESTemplate : true
509
+ preConvertSteps :
510
+ - task : DownloadPipelineArtifact@2
511
+ inputs :
512
+ artifactName : nuget-signed
513
+ artifactPatterns : |
514
+ *Darwin*
515
+ downloadPath : $(Build.StagingDirectory)\drop\nugets
516
+ - task : DownloadPipelineArtifact@2
517
+ inputs :
518
+ artifactName : nuget-linux-signed
519
+ downloadPath : $(Build.StagingDirectory)\drop\nugets
510
520
postConvertSteps :
511
521
- task : DownloadPipelineArtifact@2
512
522
inputs :
513
523
artifactName : $(NuGetArtifactName)
514
524
downloadPath : $(Build.StagingDirectory)\sign-verify
515
525
patterns : |
516
526
**/SignVerifyIgnore.txt
517
-
518
527
- task : MicroBuildCodesignVerify@3
519
528
displayName : verify signed msi content
520
529
inputs :
521
530
TargetFolders : |
522
531
$(Build.ArtifactStagingDirectory)\bin\manifests
523
- $(Build.ArtifactStagingDirectory)\bin\manifests-multitarget
532
+ $(Build.ArtifactStagingDirectory)\bin\manifests-packs
533
+ $(Build.ArtifactStagingDirectory)\bin\msi-nupkgs
524
534
ExcludeSNVerify : true
525
535
ApprovalListPathForCerts : $(Build.StagingDirectory)\sign-verify\SignVerifyIgnore.txt
526
536
527
- # Check - "Xamarin.Android (Prepare .NET Release Push Internal )"
537
+ # Check - "Xamarin.Android (Prepare .NET Release Publish symbols and Push to Maestro )"
528
538
- job : push_signed_nugets
529
- displayName : Push Internal
539
+ displayName : Publish symbols and Push to Maestro
530
540
dependsOn :
531
541
- nuget_convert
532
542
- sign_net_linux
533
543
condition : and(eq(dependencies.nuget_convert.result, 'Succeeded'), eq(dependencies.sign_net_linux.result, 'Succeeded'))
534
- timeoutInMinutes : 60
544
+ timeoutInMinutes : 90
535
545
pool :
536
546
name : AzurePipelines-EO
537
547
image : $(WindowsPoolImage1ESPT)
@@ -541,67 +551,45 @@ extends:
541
551
variables :
542
552
- ${{ if eq(variables['MicroBuildSignType'], 'Real') }} :
543
553
- group : Publish-Build-Assets
554
+ templateContext :
555
+ outputs :
556
+ - output : artifactsDrop
557
+ dropServiceURI : https://devdiv.artifacts.visualstudio.com/DefaultCollection
558
+ buildNumber : $(ReleaseDropPrefix)/symbols
559
+ dropMetadataContainerName : DropMetadata-$(Build.BuildId)-symbols-$(System.JobAttempt)
560
+ sourcePath : $(Build.StagingDirectory)\symbols
561
+ retentionDays : 120
562
+ toLowerCase : false
544
563
steps :
545
564
- checkout : self
546
565
clean : true
547
566
submodules : recursive
548
567
568
+ # Download symbols to be published to the symbols artifact drop declared above
549
569
- task : DownloadPipelineArtifact@2
550
570
inputs :
551
- artifactName : nuget-signed
552
- downloadPath : $(Build.StagingDirectory)\nuget-signed
553
-
554
- - task : DownloadPipelineArtifact@2
555
- inputs :
556
- artifactName : nuget-linux-signed
557
- downloadPath : $(Build.StagingDirectory)\nuget-signed
571
+ artifactName : $(WindowsToolchainPdbArtifactName)
572
+ downloadPath : $(Build.StagingDirectory)\symbols
558
573
559
574
- task : DownloadPipelineArtifact@2
560
575
inputs :
561
- artifactName : vs-msi-nugets
562
- downloadPath : $(Build.StagingDirectory)\nuget-signed
576
+ artifactName : DropMetadata-$(Build.BuildId)-nugets-$(System.JobAttempt)
577
+ downloadPath : $(Build.StagingDirectory)\metadata
578
+ displayName : Download nugets drop metadata
563
579
564
- - task : DownloadPipelineArtifact@2
580
+ - powershell : |
581
+ $jsonContent = Get-Content -Path "$(Build.StagingDirectory)\metadata\VSTSDrop.json" -Raw | ConvertFrom-Json
582
+ $dropPrefix = $jsonContent.VstsDropBuildArtifact.VstsDropUrl -replace 'https://devdiv.artifacts.visualstudio.com/DefaultCollection/_apis/drop/drops/' -replace '/nugets'
583
+ Write-Host "##vso[task.setvariable variable=ReleaseDropPrefix]$dropPrefix"
584
+ displayName: Set variable ReleaseDropPrefix
585
+
586
+ # Download nugets drop created by nuget-msi-convert/job/v4.yml and publish to maestro
587
+ - task : ms-vscs-artifact.build-tasks.artifactDropDownloadTask-1.artifactDropDownloadTask@1
588
+ displayName : Download $(ReleaseDropPrefix)/nugets
565
589
inputs :
566
- artifactName : $(WindowsToolchainPdbArtifactName)
567
- downloadPath : $(Build.StagingDirectory)\nuget-signed
568
-
569
- - template : templates\common\upload-vs-insertion-artifacts.yml@sdk-insertions
570
- parameters :
571
- githubToken : $(GitHub.Token)
572
- githubContext : $(NupkgCommitStatusName)
573
- blobName : $(NupkgCommitStatusName)
574
- packagePrefix : xamarin-android
575
- artifactsPath : $(Build.StagingDirectory)\nuget-signed
576
- yamlResourceName : yaml-templates
577
-
578
- - template : templates\common\upload-vs-insertion-artifacts.yml@sdk-insertions
579
- parameters :
580
- githubToken : $(GitHub.Token)
581
- githubContext : $(VSDropCommitStatusName)
582
- blobName : $(VSDropCommitStatusName)
583
- packagePrefix : xamarin-android
584
- artifactsPath : $(Build.StagingDirectory)\$(VSDropCommitStatusName)
585
- yamlResourceName : yaml-templates
586
- downloadSteps :
587
- - task : DownloadPipelineArtifact@2
588
- inputs :
589
- artifactName : vsdrop-signed
590
- downloadPath : $(Build.StagingDirectory)\$(VSDropCommitStatusName)
591
-
592
- - template : templates\common\upload-vs-insertion-artifacts.yml@sdk-insertions
593
- parameters :
594
- githubToken : $(GitHub.Token)
595
- githubContext : $(MultiTargetVSDropCommitStatusName)
596
- blobName : $(MultiTargetVSDropCommitStatusName)
597
- packagePrefix : xamarin-android
598
- artifactsPath : $(Build.StagingDirectory)\$(MultiTargetVSDropCommitStatusName)
599
- yamlResourceName : yaml-templates
600
- downloadSteps :
601
- - task : DownloadPipelineArtifact@2
602
- inputs :
603
- artifactName : vsdrop-multitarget-signed
604
- downloadPath : $(Build.StagingDirectory)\$(MultiTargetVSDropCommitStatusName)
590
+ dropServiceURI : https://devdiv.artifacts.visualstudio.com/DefaultCollection
591
+ buildNumber : $(ReleaseDropPrefix)/nugets
592
+ destinationPath : $(Build.StagingDirectory)\nuget-signed
605
593
606
594
- task : DotNetCoreCLI@2
607
595
displayName : build Xamarin.Android.Tools.BootstrapTasks.sln
0 commit comments