|
|
|
@ -1,13 +1,20 @@
|
|
|
|
|
parameters:
|
|
|
|
|
# Which publishing infra should be used. THIS SHOULD MATCH THE VERSION ON THE BUILD MANIFEST.
|
|
|
|
|
# Publishing V2 accepts optionally outlining the publishing stages - default is inline.
|
|
|
|
|
# Publishing V3 DOES NOT accept inlining the publishing stages.
|
|
|
|
|
publishingInfraVersion: 2
|
|
|
|
|
# When set to true the publishing templates from the repo will be used
|
|
|
|
|
# otherwise Darc add-build-to-channel will be used to trigger the promotion pipeline
|
|
|
|
|
inline: true
|
|
|
|
|
|
|
|
|
|
# Only used if inline==false. When set to true will stall the current build until
|
|
|
|
|
# the Promotion Pipeline build finishes. Otherwise, the current build continue
|
|
|
|
|
# the Promotion Pipeline build finishes. Otherwise, the current build will continue
|
|
|
|
|
# execution concurrently with the promotion build.
|
|
|
|
|
waitPublishingFinish: true
|
|
|
|
|
|
|
|
|
|
BARBuildId: ''
|
|
|
|
|
PromoteToChannelIds: ''
|
|
|
|
|
|
|
|
|
|
enableSourceLinkValidation: false
|
|
|
|
|
enableSigningValidation: true
|
|
|
|
|
enableSymbolValidation: false
|
|
|
|
@ -59,14 +66,183 @@ parameters:
|
|
|
|
|
VSMasterChannelId: 1012
|
|
|
|
|
|
|
|
|
|
stages:
|
|
|
|
|
- ${{ if ne(parameters.inline, 'true') }}:
|
|
|
|
|
- stage: Validate
|
|
|
|
|
dependsOn: ${{ parameters.validateDependsOn }}
|
|
|
|
|
displayName: Validate Build Assets
|
|
|
|
|
variables:
|
|
|
|
|
- template: common-variables.yml
|
|
|
|
|
jobs:
|
|
|
|
|
- template: setup-maestro-vars.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
|
|
|
|
|
- job:
|
|
|
|
|
displayName: Post-build Checks
|
|
|
|
|
dependsOn: setupMaestroVars
|
|
|
|
|
variables:
|
|
|
|
|
- name: TargetChannels
|
|
|
|
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.TargetChannels'] ]
|
|
|
|
|
pool:
|
|
|
|
|
vmImage: 'windows-2019'
|
|
|
|
|
steps:
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
|
displayName: Maestro Channels Consistency
|
|
|
|
|
inputs:
|
|
|
|
|
filePath: $(Build.SourcesDirectory)/eng/common/post-build/check-channel-consistency.ps1
|
|
|
|
|
arguments: -PromoteToChannels "$(TargetChannels)"
|
|
|
|
|
-AvailableChannelIds ${{parameters.NetEngLatestChannelId}},${{parameters.NetEngValidationChannelId}},${{parameters.NetDev5ChannelId}},${{parameters.NetDev6ChannelId}},${{parameters.GeneralTestingChannelId}},${{parameters.NETCoreToolingDevChannelId}},${{parameters.NETCoreToolingReleaseChannelId}},${{parameters.NETInternalToolingChannelId}},${{parameters.NETCoreExperimentalChannelId}},${{parameters.NetEngServicesIntChannelId}},${{parameters.NetEngServicesProdChannelId}},${{parameters.Net5Preview8ChannelId}},${{parameters.Net5RC1ChannelId}},${{parameters.NetCoreSDK313xxChannelId}},${{parameters.NetCoreSDK313xxInternalChannelId}},${{parameters.NetCoreSDK314xxChannelId}},${{parameters.NetCoreSDK314xxInternalChannelId}},${{parameters.VS166ChannelId}},${{parameters.VS167ChannelId}},${{parameters.VS168ChannelId}},${{parameters.VSMasterChannelId}}
|
|
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
- ${{ if eq(parameters.useBuildManifest, true) }}:
|
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
|
|
|
displayName: Download build manifest
|
|
|
|
|
inputs:
|
|
|
|
|
buildType: specific
|
|
|
|
|
buildVersionToDownload: specific
|
|
|
|
|
project: $(AzDOProjectName)
|
|
|
|
|
pipeline: $(AzDOPipelineId)
|
|
|
|
|
buildId: $(AzDOBuildId)
|
|
|
|
|
artifactName: BuildManifests
|
|
|
|
|
- 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)
|
|
|
|
|
|
|
|
|
|
# Signing validation will optionally work with the buildmanifest file which is downloaded from
|
|
|
|
|
# Azure DevOps above.
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
|
displayName: Validate
|
|
|
|
|
inputs:
|
|
|
|
|
filePath: eng\common\sdk-task.ps1
|
|
|
|
|
arguments: -task SigningValidation -restore -msbuildEngine vs
|
|
|
|
|
/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 }}
|
|
|
|
|
downloadArtifacts: ${{ parameters.SDLValidationParameters.downloadArtifacts }}
|
|
|
|
|
|
|
|
|
|
- ${{ if or(ge(parameters.publishingInfraVersion, 3), eq(parameters.inline, 'false')) }}:
|
|
|
|
|
- stage: publish_using_darc
|
|
|
|
|
dependsOn: ${{ parameters.validateDependsOn }}
|
|
|
|
|
dependsOn: Validate
|
|
|
|
|
displayName: Publish using Darc
|
|
|
|
|
variables:
|
|
|
|
|
- template: common-variables.yml
|
|
|
|
|
jobs:
|
|
|
|
|
- template: setup-maestro-vars.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
|
|
|
|
|
- job:
|
|
|
|
|
displayName: Publish Using Darc
|
|
|
|
@ -82,182 +258,17 @@ stages:
|
|
|
|
|
inputs:
|
|
|
|
|
filePath: $(Build.SourcesDirectory)/eng/common/post-build/publish-using-darc.ps1
|
|
|
|
|
arguments: -BuildId $(BARBuildId)
|
|
|
|
|
-PublishingInfraVersion ${{ parameters.PublishingInfraVersion }}
|
|
|
|
|
-AzdoToken '$(publishing-dnceng-devdiv-code-r-build-re)'
|
|
|
|
|
-MaestroToken '$(MaestroApiAccessToken)'
|
|
|
|
|
-WaitPublishingFinish ${{ parameters.waitPublishingFinish }}
|
|
|
|
|
-EnableSourceLinkValidation ${{ parameters.enableSourceLinkValidation }}
|
|
|
|
|
-EnableSigningValidation ${{ parameters.enableSourceLinkValidation }}
|
|
|
|
|
-EnableNugetValidation ${{ parameters.enableSourceLinkValidation }}
|
|
|
|
|
-PublishInstallersAndChecksums ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
|
-ArtifactsPublishingAdditionalParameters '${{ parameters.artifactsPublishingAdditionalParameters }}'
|
|
|
|
|
-SigningValidationAdditionalParameters '${{ parameters.signingValidationAdditionalParameters }}'
|
|
|
|
|
|
|
|
|
|
- ${{ if eq(parameters.inline, 'true') }}:
|
|
|
|
|
- stage: Validate
|
|
|
|
|
dependsOn: ${{ parameters.validateDependsOn }}
|
|
|
|
|
displayName: Validate Build Assets
|
|
|
|
|
variables:
|
|
|
|
|
- template: common-variables.yml
|
|
|
|
|
jobs:
|
|
|
|
|
- template: setup-maestro-vars.yml
|
|
|
|
|
|
|
|
|
|
- job:
|
|
|
|
|
displayName: Post-build Checks
|
|
|
|
|
dependsOn: setupMaestroVars
|
|
|
|
|
variables:
|
|
|
|
|
- name: TargetChannels
|
|
|
|
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.TargetChannels'] ]
|
|
|
|
|
pool:
|
|
|
|
|
vmImage: 'windows-2019'
|
|
|
|
|
steps:
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
|
displayName: Maestro Channels Consistency
|
|
|
|
|
inputs:
|
|
|
|
|
filePath: $(Build.SourcesDirectory)/eng/common/post-build/check-channel-consistency.ps1
|
|
|
|
|
arguments: -PromoteToChannels "$(TargetChannels)"
|
|
|
|
|
-AvailableChannelIds ${{parameters.NetEngLatestChannelId}},${{parameters.NetEngValidationChannelId}},${{parameters.NetDev5ChannelId}},${{parameters.NetDev6ChannelId}},${{parameters.GeneralTestingChannelId}},${{parameters.NETCoreToolingDevChannelId}},${{parameters.NETCoreToolingReleaseChannelId}},${{parameters.NETInternalToolingChannelId}},${{parameters.NETCoreExperimentalChannelId}},${{parameters.NetEngServicesIntChannelId}},${{parameters.NetEngServicesProdChannelId}},${{parameters.Net5Preview8ChannelId}},${{parameters.Net5RC1ChannelId}},${{parameters.NetCoreSDK313xxChannelId}},${{parameters.NetCoreSDK313xxInternalChannelId}},${{parameters.NetCoreSDK314xxChannelId}},${{parameters.NetCoreSDK314xxInternalChannelId}},${{parameters.VS166ChannelId}},${{parameters.VS167ChannelId}},${{parameters.VS168ChannelId}},${{parameters.VSMasterChannelId}}
|
|
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
- ${{ if eq(parameters.useBuildManifest, true) }}:
|
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
|
|
|
displayName: Download build manifest
|
|
|
|
|
inputs:
|
|
|
|
|
buildType: specific
|
|
|
|
|
buildVersionToDownload: specific
|
|
|
|
|
project: $(AzDOProjectName)
|
|
|
|
|
pipeline: $(AzDOPipelineId)
|
|
|
|
|
buildId: $(AzDOBuildId)
|
|
|
|
|
artifactName: BuildManifests
|
|
|
|
|
- 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)
|
|
|
|
|
|
|
|
|
|
# Signing validation will optionally work with the buildmanifest file which is downloaded from
|
|
|
|
|
# Azure DevOps above.
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
|
displayName: Validate
|
|
|
|
|
inputs:
|
|
|
|
|
filePath: eng\common\sdk-task.ps1
|
|
|
|
|
arguments: -task SigningValidation -restore -msbuildEngine vs
|
|
|
|
|
/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 }}
|
|
|
|
|
downloadArtifacts: ${{ parameters.SDLValidationParameters.downloadArtifacts }}
|
|
|
|
|
|
|
|
|
|
- ${{ if and(le(parameters.publishingInfraVersion, 2), eq(parameters.inline, 'true')) }}:
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -272,6 +283,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -286,6 +299,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-internal-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -300,6 +315,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -314,6 +331,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -328,6 +347,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -342,6 +363,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -356,6 +379,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -369,6 +394,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -382,6 +409,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-internal-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -395,6 +424,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -408,6 +439,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -421,6 +454,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -434,6 +469,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -447,6 +484,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-internal-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -460,6 +499,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -473,6 +514,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-internal-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -486,6 +529,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -499,6 +544,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -512,6 +559,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
@ -525,6 +574,8 @@ stages:
|
|
|
|
|
|
|
|
|
|
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
|
|
|
|
|
parameters:
|
|
|
|
|
BARBuildId: ${{ parameters.BARBuildId }}
|
|
|
|
|
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}
|
|
|
|
|
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
|
|
|
|
|
dependsOn: ${{ parameters.publishDependsOn }}
|
|
|
|
|
publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }}
|
|
|
|
|