828d18a021
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19312.21
146 lines
5.3 KiB
YAML
146 lines
5.3 KiB
YAML
parameters:
|
|
enableSymbolValidation: true
|
|
|
|
stages:
|
|
- stage: Publish
|
|
dependsOn: validate
|
|
variables:
|
|
- template: ../common-variables.yml
|
|
displayName: Developer Channel
|
|
jobs:
|
|
- template: ../setup-maestro-vars.yml
|
|
|
|
- job:
|
|
displayName: Symbol Publishing
|
|
dependsOn: setupMaestroVars
|
|
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], variables.PublicDevRelease_30_Channel_Id)
|
|
variables:
|
|
- group: DotNet-Symbol-Server-Pats
|
|
pool:
|
|
vmImage: 'windows-2019'
|
|
steps:
|
|
- task: DownloadBuildArtifacts@0
|
|
displayName: Download PDB Artifacts
|
|
inputs:
|
|
buildType: current
|
|
artifactName: PDBArtifacts
|
|
continueOnError: true
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
displayName: Download Blob Artifacts
|
|
inputs:
|
|
buildType: current
|
|
artifactName: BlobArtifacts
|
|
|
|
- task: PowerShell@2
|
|
displayName: Publish
|
|
inputs:
|
|
filePath: eng\common\sdk-task.ps1
|
|
arguments: -task PublishToSymbolServers -restore -msbuildEngine dotnet
|
|
/p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat)
|
|
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
|
|
/p:PDBArtifactsDirectory='$(Build.ArtifactStagingDirectory)/PDBArtifacts/'
|
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
|
/p:Configuration=Release
|
|
|
|
- job:
|
|
displayName: Publish to Static Feed
|
|
dependsOn: setupMaestroVars
|
|
variables:
|
|
- group: DotNet-Blob-Feed
|
|
- group: Publish-Build-Assets
|
|
- name: BARBuildId
|
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ]
|
|
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], variables.PublicDevRelease_30_Channel_Id)
|
|
pool:
|
|
vmImage: 'windows-2019'
|
|
steps:
|
|
- task: DownloadBuildArtifacts@0
|
|
displayName: Download Package Artifacts
|
|
inputs:
|
|
buildType: current
|
|
artifactName: PackageArtifacts
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
displayName: Download Blob Artifacts
|
|
inputs:
|
|
buildType: current
|
|
artifactName: BlobArtifacts
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
displayName: Download Asset Manifests
|
|
inputs:
|
|
buildType: current
|
|
artifactName: AssetManifests
|
|
|
|
- task: PowerShell@2
|
|
displayName: Publish
|
|
inputs:
|
|
filePath: eng\common\sdk-task.ps1
|
|
arguments: -task PublishToPackageFeed -restore -msbuildEngine dotnet
|
|
/p:AccountKeyToStaticFeed='$(dotnetfeed-storage-access-key-1)'
|
|
/p:BARBuildId=$(BARBuildId)
|
|
/p:MaestroApiEndpoint='https://maestro-prod.westus2.cloudapp.azure.com'
|
|
/p:BuildAssetRegistryToken='$(MaestroAccessToken)'
|
|
/p:ManifestsBasePath='$(Build.ArtifactStagingDirectory)/AssetManifests/'
|
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
|
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts/'
|
|
/p:ArtifactsCategory='$(_DotNetArtifactsCategory)'
|
|
/p:OverrideAssetsWithSameName=true
|
|
/p:PassIfExistingItemIdentical=true
|
|
/p:Configuration=Release
|
|
|
|
|
|
- stage: PublishValidation
|
|
displayName: Publish Validation
|
|
variables:
|
|
- template: ../common-variables.yml
|
|
jobs:
|
|
- template: ../setup-maestro-vars.yml
|
|
|
|
- ${{ if eq(parameters.enableSymbolValidation, 'true') }}:
|
|
- job:
|
|
displayName: Symbol Availability
|
|
dependsOn: setupMaestroVars
|
|
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], variables.PublicDevRelease_30_Channel_Id)
|
|
pool:
|
|
vmImage: 'windows-2019'
|
|
steps:
|
|
- task: DownloadBuildArtifacts@0
|
|
displayName: Download Package Artifacts
|
|
inputs:
|
|
buildType: current
|
|
artifactName: PackageArtifacts
|
|
|
|
- task: PowerShell@2
|
|
displayName: Check Symbol Availability
|
|
inputs:
|
|
filePath: $(Build.SourcesDirectory)/eng/common/post-build/symbols-validation.ps1
|
|
arguments: -InputPath $(Build.ArtifactStagingDirectory)/PackageArtifacts/ -ExtractPath $(Agent.BuildDirectory)/Temp/ -DotnetSymbolVersion $(SymbolToolVersion)
|
|
|
|
- job:
|
|
displayName: Gather Drop
|
|
dependsOn: setupMaestroVars
|
|
variables:
|
|
BARBuildId: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ]
|
|
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], variables.PublicDevRelease_30_Channel_Id)
|
|
pool:
|
|
vmImage: 'windows-2019'
|
|
steps:
|
|
- task: PowerShell@2
|
|
displayName: Setup Darc CLI
|
|
inputs:
|
|
targetType: filePath
|
|
filePath: '$(Build.SourcesDirectory)/eng/common/darc-init.ps1'
|
|
|
|
- task: PowerShell@2
|
|
displayName: Run Darc gather-drop
|
|
inputs:
|
|
targetType: inline
|
|
script: |
|
|
darc gather-drop --non-shipping --continue-on-error --id $(BARBuildId) --output-dir $(Agent.BuildDirectory)/Temp/Drop/ --bar-uri https://maestro-prod.westus2.cloudapp.azure.com/ --password $(MaestroAccessToken)
|
|
continueOnError: true
|
|
|
|
- template: ../promote-build.yml
|
|
parameters:
|
|
ChannelId: ${{ variables.PublicDevRelease_30_Channel_Id }}
|