0216278652
- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.20079.8
288 lines
14 KiB
YAML
288 lines
14 KiB
YAML
parameters:
|
|
enableSourceLinkValidation: false
|
|
enableSigningValidation: true
|
|
enableSymbolValidation: false
|
|
enableNugetValidation: true
|
|
publishInstallersAndChecksums: false
|
|
SDLValidationParameters:
|
|
enable: false
|
|
continueOnError: false
|
|
params: ''
|
|
artifactNames: ''
|
|
|
|
# These parameters let the user customize the call to sdk-task.ps1 for publishing
|
|
# symbols & general artifacts as well as for signing validation
|
|
symbolPublishingAdditionalParameters: ''
|
|
artifactsPublishingAdditionalParameters: ''
|
|
signingValidationAdditionalParameters: ''
|
|
|
|
# Which stages should finish execution before post-build stages start
|
|
validateDependsOn:
|
|
- build
|
|
publishDependsOn:
|
|
- Validate
|
|
|
|
stages:
|
|
- stage: Validate
|
|
dependsOn: ${{ parameters.validateDependsOn }}
|
|
displayName: Validate
|
|
variables:
|
|
- template: common-variables.yml
|
|
jobs:
|
|
- template: setup-maestro-vars.yml
|
|
|
|
- job:
|
|
displayName: NuGet Validation
|
|
dependsOn: setupMaestroVars
|
|
condition: eq( ${{ parameters.enableNugetValidation }}, 'true')
|
|
pool:
|
|
vmImage: 'windows-2019'
|
|
variables:
|
|
- name: AzDOProjectName
|
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOProjectName'] ]
|
|
- name: AzDOPipelineId
|
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOPipelineId'] ]
|
|
- name: AzDOBuildId
|
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildId'] ]
|
|
steps:
|
|
- task: DownloadBuildArtifacts@0
|
|
displayName: Download Package Artifacts
|
|
inputs:
|
|
buildType: specific
|
|
buildVersionToDownload: specific
|
|
project: $(AzDOProjectName)
|
|
pipeline: $(AzDOPipelineId)
|
|
buildId: $(AzDOBuildId)
|
|
artifactName: PackageArtifacts
|
|
|
|
- task: PowerShell@2
|
|
displayName: Validate
|
|
inputs:
|
|
filePath: $(Build.SourcesDirectory)/eng/common/post-build/nuget-validation.ps1
|
|
arguments: -PackagesPath $(Build.ArtifactStagingDirectory)/PackageArtifacts/
|
|
-ToolDestinationPath $(Agent.BuildDirectory)/Extract/
|
|
|
|
- job:
|
|
displayName: Signing Validation
|
|
dependsOn: setupMaestroVars
|
|
condition: eq( ${{ parameters.enableSigningValidation }}, 'true')
|
|
variables:
|
|
- template: common-variables.yml
|
|
- name: AzDOProjectName
|
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOProjectName'] ]
|
|
- name: AzDOPipelineId
|
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOPipelineId'] ]
|
|
- name: AzDOBuildId
|
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildId'] ]
|
|
pool:
|
|
vmImage: 'windows-2019'
|
|
steps:
|
|
- task: DownloadBuildArtifacts@0
|
|
displayName: Download Package Artifacts
|
|
inputs:
|
|
buildType: specific
|
|
buildVersionToDownload: specific
|
|
project: $(AzDOProjectName)
|
|
pipeline: $(AzDOPipelineId)
|
|
buildId: $(AzDOBuildId)
|
|
artifactName: PackageArtifacts
|
|
|
|
# This is necessary whenever we want to publish/restore to an AzDO private feed
|
|
# Since sdk-task.ps1 tries to restore packages we need to do this authentication here
|
|
# otherwise it'll complain about accessing a private feed.
|
|
- task: NuGetAuthenticate@0
|
|
displayName: 'Authenticate to AzDO Feeds'
|
|
|
|
- task: PowerShell@2
|
|
displayName: Enable cross-org publishing
|
|
inputs:
|
|
filePath: eng\common\enable-cross-org-publishing.ps1
|
|
arguments: -token $(dn-bot-dnceng-artifact-feeds-rw)
|
|
|
|
- task: PowerShell@2
|
|
displayName: Validate
|
|
inputs:
|
|
filePath: eng\common\sdk-task.ps1
|
|
arguments: -task SigningValidation -restore -msbuildEngine dotnet
|
|
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts'
|
|
/p:SignCheckExclusionsFile='$(Build.SourcesDirectory)/eng/SignCheckExclusionsFile.txt'
|
|
${{ parameters.signingValidationAdditionalParameters }}
|
|
|
|
- template: ../steps/publish-logs.yml
|
|
parameters:
|
|
StageLabel: 'Validation'
|
|
JobLabel: 'Signing'
|
|
|
|
- job:
|
|
displayName: SourceLink Validation
|
|
dependsOn: setupMaestroVars
|
|
condition: eq( ${{ parameters.enableSourceLinkValidation }}, 'true')
|
|
variables:
|
|
- template: common-variables.yml
|
|
- name: AzDOProjectName
|
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOProjectName'] ]
|
|
- name: AzDOPipelineId
|
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOPipelineId'] ]
|
|
- name: AzDOBuildId
|
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildId'] ]
|
|
pool:
|
|
vmImage: 'windows-2019'
|
|
steps:
|
|
- task: DownloadBuildArtifacts@0
|
|
displayName: Download Blob Artifacts
|
|
inputs:
|
|
buildType: specific
|
|
buildVersionToDownload: specific
|
|
project: $(AzDOProjectName)
|
|
pipeline: $(AzDOPipelineId)
|
|
buildId: $(AzDOBuildId)
|
|
artifactName: BlobArtifacts
|
|
|
|
- task: PowerShell@2
|
|
displayName: Validate
|
|
inputs:
|
|
filePath: $(Build.SourcesDirectory)/eng/common/post-build/sourcelink-validation.ps1
|
|
arguments: -InputPath $(Build.ArtifactStagingDirectory)/BlobArtifacts/
|
|
-ExtractPath $(Agent.BuildDirectory)/Extract/
|
|
-GHRepoName $(Build.Repository.Name)
|
|
-GHCommit $(Build.SourceVersion)
|
|
-SourcelinkCliVersion $(SourceLinkCLIVersion)
|
|
continueOnError: true
|
|
|
|
- template: /eng/common/templates/job/execute-sdl.yml
|
|
parameters:
|
|
enable: ${{ parameters.SDLValidationParameters.enable }}
|
|
dependsOn: setupMaestroVars
|
|
additionalParameters: ${{ parameters.SDLValidationParameters.params }}
|
|
continueOnError: ${{ parameters.SDLValidationParameters.continueOnError }}
|
|
artifactNames: ${{ parameters.SDLValidationParameters.artifactNames }}
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
parameters:
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
|
stageName: 'NetCore_Dev5_Publish'
|
|
channelName: '.NET Core 5 Dev'
|
|
channelId: 131
|
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5-transport/nuget/v3/index.json'
|
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json'
|
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5-symbols/nuget/v3/index.json'
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
parameters:
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
|
stageName: 'Net_Eng_Latest_Publish'
|
|
channelName: '.NET Eng - Latest'
|
|
channelId: 2
|
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
|
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
|
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng-symbols/nuget/v3/index.json'
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
parameters:
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
|
stageName: 'Net_Eng_Validation_Publish'
|
|
channelName: '.NET Eng - Validation'
|
|
channelId: 9
|
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
|
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
|
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng-symbols/nuget/v3/index.json'
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
parameters:
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
|
stageName: 'General_Testing_Publish'
|
|
channelName: 'General Testing'
|
|
channelId: 529
|
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/general-testing/nuget/v3/index.json'
|
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/general-testing/nuget/v3/index.json'
|
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/general-testing-symbols/nuget/v3/index.json'
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
parameters:
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
|
stageName: 'NETCore_Tooling_Dev_Publishing'
|
|
channelName: '.NET Core Tooling Dev'
|
|
channelId: 548
|
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json'
|
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json'
|
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools-symbols/nuget/v3/index.json'
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
parameters:
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
|
stageName: 'NETCore_Tooling_Release_Publishing'
|
|
channelName: '.NET Core Tooling Release'
|
|
channelId: 549
|
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json'
|
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json'
|
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools-symbols/nuget/v3/index.json'
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-internal-channel.yml
|
|
parameters:
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
|
stageName: 'NET_Internal_Tooling_Publishing'
|
|
channelName: '.NET Internal Tooling'
|
|
channelId: 551
|
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet-tools-internal/nuget/v3/index.json'
|
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet-tools-internal/nuget/v3/index.json'
|
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet-tools-internal-symbols/nuget/v3/index.json'
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
parameters:
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
|
stageName: 'NETCore_Experimental_Publishing'
|
|
channelName: '.NET Core Experimental'
|
|
channelId: 562
|
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json'
|
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json'
|
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental-symbols/nuget/v3/index.json'
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
parameters:
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
|
stageName: 'Net_Eng_Services_Int_Publish'
|
|
channelName: '.NET Eng Services - Int'
|
|
channelId: 678
|
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
|
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
|
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng-symbols/nuget/v3/index.json'
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
parameters:
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
|
stageName: 'Net_Eng_Services_Prod_Publish'
|
|
channelName: '.NET Eng Services - Prod'
|
|
channelId: 679
|
|
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
|
|
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json'
|
|
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng-symbols/nuget/v3/index.json'
|