2019-06-13 12:10:50 +00:00
|
|
|
parameters:
|
2019-09-10 19:38:53 +00:00
|
|
|
enableSourceLinkValidation: false
|
2019-06-13 12:10:50 +00:00
|
|
|
enableSigningValidation: true
|
2019-09-10 19:38:53 +00:00
|
|
|
enableSymbolValidation: false
|
2019-06-28 13:15:43 +00:00
|
|
|
enableNugetValidation: true
|
2019-08-21 15:32:46 +00:00
|
|
|
publishInstallersAndChecksums: false
|
2019-06-22 12:29:08 +00:00
|
|
|
SDLValidationParameters:
|
|
|
|
enable: false
|
2019-09-10 19:38:53 +00:00
|
|
|
continueOnError: false
|
2019-06-22 12:29:08 +00:00
|
|
|
params: ''
|
2019-11-09 13:42:32 +00:00
|
|
|
artifactNames: ''
|
2019-06-13 12:10:50 +00:00
|
|
|
|
2019-08-21 15:32:46 +00:00
|
|
|
# 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: ''
|
|
|
|
|
2019-07-27 12:35:24 +00:00
|
|
|
# Which stages should finish execution before post-build stages start
|
2019-10-24 22:05:36 +00:00
|
|
|
validateDependsOn:
|
|
|
|
- build
|
|
|
|
publishDependsOn:
|
|
|
|
- Validate
|
2019-07-27 12:35:24 +00:00
|
|
|
|
2019-06-13 12:10:50 +00:00
|
|
|
stages:
|
2019-10-24 22:05:36 +00:00
|
|
|
- stage: Validate
|
|
|
|
dependsOn: ${{ parameters.validateDependsOn }}
|
2019-06-13 12:10:50 +00:00
|
|
|
displayName: Validate
|
|
|
|
jobs:
|
2019-06-28 13:15:43 +00:00
|
|
|
- ${{ if eq(parameters.enableNugetValidation, 'true') }}:
|
|
|
|
- job:
|
|
|
|
displayName: NuGet Validation
|
|
|
|
pool:
|
|
|
|
vmImage: 'windows-2019'
|
|
|
|
steps:
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
|
|
displayName: Download Package Artifacts
|
|
|
|
inputs:
|
|
|
|
buildType: current
|
|
|
|
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/
|
|
|
|
|
2019-06-13 12:10:50 +00:00
|
|
|
- ${{ if eq(parameters.enableSigningValidation, 'true') }}:
|
|
|
|
- job:
|
|
|
|
displayName: Signing Validation
|
2019-10-24 22:05:36 +00:00
|
|
|
variables:
|
|
|
|
- template: common-variables.yml
|
2019-06-13 12:10:50 +00:00
|
|
|
pool:
|
|
|
|
vmImage: 'windows-2019'
|
|
|
|
steps:
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
|
|
displayName: Download Package Artifacts
|
|
|
|
inputs:
|
|
|
|
buildType: current
|
|
|
|
artifactName: PackageArtifacts
|
|
|
|
|
2019-10-24 22:05:36 +00:00
|
|
|
# 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)
|
|
|
|
|
2019-06-13 12:10:50 +00:00
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Validate
|
|
|
|
inputs:
|
|
|
|
filePath: eng\common\sdk-task.ps1
|
|
|
|
arguments: -task SigningValidation -restore -msbuildEngine dotnet
|
|
|
|
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts'
|
2019-08-21 15:32:46 +00:00
|
|
|
/p:SignCheckExclusionsFile='$(Build.SourcesDirectory)/eng/SignCheckExclusionsFile.txt'
|
|
|
|
${{ parameters.signingValidationAdditionalParameters }}
|
2019-06-13 12:10:50 +00:00
|
|
|
|
2019-11-14 23:21:53 +00:00
|
|
|
- template: ../steps/publish-logs.yml
|
|
|
|
parameters:
|
|
|
|
StageLabel: 'Validation'
|
|
|
|
JobLabel: 'Signing'
|
|
|
|
|
2019-06-13 12:10:50 +00:00
|
|
|
- ${{ if eq(parameters.enableSourceLinkValidation, 'true') }}:
|
|
|
|
- job:
|
|
|
|
displayName: SourceLink Validation
|
|
|
|
variables:
|
|
|
|
- template: common-variables.yml
|
|
|
|
pool:
|
|
|
|
vmImage: 'windows-2019'
|
|
|
|
steps:
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
|
|
displayName: Download Blob Artifacts
|
|
|
|
inputs:
|
|
|
|
buildType: current
|
|
|
|
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)
|
2019-08-21 15:32:46 +00:00
|
|
|
continueOnError: true
|
2019-06-13 12:10:50 +00:00
|
|
|
|
2019-06-22 12:29:08 +00:00
|
|
|
- ${{ if eq(parameters.SDLValidationParameters.enable, 'true') }}:
|
|
|
|
- template: /eng/common/templates/job/execute-sdl.yml
|
|
|
|
parameters:
|
|
|
|
additionalParameters: ${{ parameters.SDLValidationParameters.params }}
|
2019-09-10 19:38:53 +00:00
|
|
|
continueOnError: ${{ parameters.SDLValidationParameters.continueOnError }}
|
2019-11-09 13:42:32 +00:00
|
|
|
artifactNames: ${{ parameters.SDLValidationParameters.artifactNames }}
|
2019-06-22 12:29:08 +00:00
|
|
|
|
2019-11-14 23:21:53 +00:00
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
2019-08-21 15:32:46 +00:00
|
|
|
parameters:
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
2019-10-24 22:05:36 +00:00
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
2019-08-21 15:32:46 +00:00
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
2019-11-08 23:46:49 +00:00
|
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
2019-11-14 23:21:53 +00:00
|
|
|
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'
|
2019-11-08 23:46:49 +00:00
|
|
|
|
2019-11-14 23:21:53 +00:00
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
2019-06-13 12:10:50 +00:00
|
|
|
parameters:
|
2019-08-21 15:32:46 +00:00
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
2019-10-24 22:05:36 +00:00
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
2019-08-21 15:32:46 +00:00
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
2019-10-24 22:05:36 +00:00
|
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
2019-11-22 13:41:58 +00:00
|
|
|
stageName: 'Net_Eng_Latest_Publish'
|
|
|
|
channelName: '.NET Eng - Latest'
|
2019-11-14 23:21:53 +00:00
|
|
|
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'
|
2019-08-21 15:32:46 +00:00
|
|
|
|
2019-11-14 23:21:53 +00:00
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
2019-08-21 15:32:46 +00:00
|
|
|
parameters:
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
2019-10-24 22:05:36 +00:00
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
2019-08-21 15:32:46 +00:00
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
2019-11-14 23:21:53 +00:00
|
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
2019-11-22 13:41:58 +00:00
|
|
|
stageName: 'Net_Eng_Validation_Publish'
|
|
|
|
channelName: '.NET Eng - Validation'
|
2019-11-14 23:21:53 +00:00
|
|
|
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'
|
2019-06-13 12:10:50 +00:00
|
|
|
|
2019-11-14 23:21:53 +00:00
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
2019-11-08 23:46:49 +00:00
|
|
|
parameters:
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
2019-11-14 23:21:53 +00:00
|
|
|
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'
|
2019-11-08 23:46:49 +00:00
|
|
|
|
2019-11-14 23:21:53 +00:00
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
2019-08-21 15:32:46 +00:00
|
|
|
parameters:
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
2019-10-24 22:05:36 +00:00
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
2019-11-08 23:46:49 +00:00
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
2019-11-14 23:21:53 +00:00
|
|
|
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'
|
2019-11-08 23:46:49 +00:00
|
|
|
|
2019-11-14 23:21:53 +00:00
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
2019-11-08 23:46:49 +00:00
|
|
|
parameters:
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
2019-10-24 22:05:36 +00:00
|
|
|
symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }}
|
2019-11-14 23:21:53 +00:00
|
|
|
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'
|
2019-11-22 13:41:58 +00:00
|
|
|
|
|
|
|
- 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
|
2019-11-25 13:35:40 +00:00
|
|
|
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'
|
2019-11-26 13:31:28 +00:00
|
|
|
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'
|