mirror of https://github.com/dotnet/tye.git
committed by
GitHub
5 changed files with 120 additions and 823 deletions
@ -1,190 +0,0 @@ |
|||||
parameters: |
|
||||
BARBuildId: '' |
|
||||
PromoteToChannelIds: '' |
|
||||
artifactsPublishingAdditionalParameters: '' |
|
||||
dependsOn: |
|
||||
- Validate |
|
||||
publishInstallersAndChecksums: true |
|
||||
symbolPublishingAdditionalParameters: '' |
|
||||
stageName: '' |
|
||||
channelName: '' |
|
||||
channelId: '' |
|
||||
transportFeed: '' |
|
||||
shippingFeed: '' |
|
||||
symbolsFeed: '' |
|
||||
|
|
||||
stages: |
|
||||
- stage: ${{ parameters.stageName }} |
|
||||
dependsOn: ${{ parameters.dependsOn }} |
|
||||
variables: |
|
||||
- template: ../common-variables.yml |
|
||||
displayName: ${{ parameters.channelName }} Publishing |
|
||||
jobs: |
|
||||
- template: ../setup-maestro-vars.yml |
|
||||
parameters: |
|
||||
BARBuildId: ${{ parameters.BARBuildId }} |
|
||||
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }} |
|
||||
|
|
||||
- job: publish_symbols |
|
||||
displayName: Symbol Publishing |
|
||||
dependsOn: setupMaestroVars |
|
||||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.TargetChannels'], format('[{0}]', ${{ parameters.channelId }} )) |
|
||||
variables: |
|
||||
- group: DotNet-Symbol-Server-Pats |
|
||||
- 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: |
|
||||
- script: echo "##vso[task.logissue type=warning]Going forward, v2 Arcade publishing is no longer supported. Please read https://github.com/dotnet/arcade/blob/main/Documentation/CorePackages/Publishing.md for details, then contact dnceng if you have further questions." |
|
||||
displayName: Warn about v2 Arcade Publishing Usage |
|
||||
|
|
||||
# This is necessary whenever we want to publish/restore to an AzDO private feed |
|
||||
- task: NuGetAuthenticate@0 |
|
||||
displayName: 'Authenticate to AzDO Feeds' |
|
||||
|
|
||||
- task: DownloadBuildArtifacts@0 |
|
||||
displayName: Download Build Assets |
|
||||
continueOnError: true |
|
||||
inputs: |
|
||||
buildType: specific |
|
||||
buildVersionToDownload: specific |
|
||||
project: $(AzDOProjectName) |
|
||||
pipeline: $(AzDOPipelineId) |
|
||||
buildId: $(AzDOBuildId) |
|
||||
downloadType: 'specific' |
|
||||
itemPattern: | |
|
||||
PdbArtifacts/** |
|
||||
BlobArtifacts/** |
|
||||
downloadPath: '$(Build.ArtifactStagingDirectory)' |
|
||||
checkDownloadedFiles: true |
|
||||
|
|
||||
# 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: 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:SymbolPublishingExclusionsFile='$(Build.SourcesDirectory)/eng/SymbolPublishingExclusionsFile.txt' |
|
||||
/p:Configuration=Release |
|
||||
/p:PublishToMSDL=false |
|
||||
${{ parameters.symbolPublishingAdditionalParameters }} |
|
||||
|
|
||||
- template: ../../steps/publish-logs.yml |
|
||||
parameters: |
|
||||
StageLabel: '${{ parameters.stageName }}' |
|
||||
JobLabel: 'SymbolPublishing' |
|
||||
|
|
||||
- job: publish_assets |
|
||||
displayName: Publish Assets |
|
||||
dependsOn: setupMaestroVars |
|
||||
timeoutInMinutes: 120 |
|
||||
variables: |
|
||||
- name: BARBuildId |
|
||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] |
|
||||
- name: IsStableBuild |
|
||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] |
|
||||
- name: AzDOProjectName |
|
||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOProjectName'] ] |
|
||||
- name: AzDOPipelineId |
|
||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOPipelineId'] ] |
|
||||
- name: AzDOBuildId |
|
||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildId'] ] |
|
||||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.TargetChannels'], format('[{0}]', ${{ parameters.channelId }} )) |
|
||||
pool: |
|
||||
vmImage: 'windows-2019' |
|
||||
steps: |
|
||||
- script: echo "##vso[task.logissue type=warning]Going forward, v2 Arcade publishing is no longer supported. Please read https://github.com/dotnet/arcade/blob/main/Documentation/CorePackages/Publishing.md for details, then contact dnceng if you have further questions." |
|
||||
displayName: Warn about v2 Arcade Publishing Usage |
|
||||
|
|
||||
- task: DownloadBuildArtifacts@0 |
|
||||
displayName: Download Build Assets |
|
||||
continueOnError: true |
|
||||
inputs: |
|
||||
buildType: specific |
|
||||
buildVersionToDownload: specific |
|
||||
project: $(AzDOProjectName) |
|
||||
pipeline: $(AzDOPipelineId) |
|
||||
buildId: $(AzDOBuildId) |
|
||||
downloadType: 'specific' |
|
||||
itemPattern: | |
|
||||
PackageArtifacts/** |
|
||||
BlobArtifacts/** |
|
||||
AssetManifests/** |
|
||||
downloadPath: '$(Build.ArtifactStagingDirectory)' |
|
||||
checkDownloadedFiles: true |
|
||||
|
|
||||
- task: NuGetToolInstaller@1 |
|
||||
displayName: 'Install NuGet.exe' |
|
||||
|
|
||||
# This is necessary whenever we want to publish/restore to an AzDO 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: Publish Assets |
|
||||
inputs: |
|
||||
filePath: eng\common\sdk-task.ps1 |
|
||||
arguments: -task PublishArtifactsInManifest -restore -msbuildEngine dotnet |
|
||||
/p:PublishingInfraVersion=2 |
|
||||
/p:IsStableBuild=$(IsStableBuild) |
|
||||
/p:IsInternalBuild=$(IsInternalBuild) |
|
||||
/p:RepositoryName=$(Build.Repository.Name) |
|
||||
/p:CommitSha=$(Build.SourceVersion) |
|
||||
/p:NugetPath=$(NuGetExeToolPath) |
|
||||
/p:AzdoTargetFeedPAT='$(dn-bot-dnceng-universal-packages-rw)' |
|
||||
/p:AzureStorageTargetFeedPAT='$(dotnetfeed-storage-access-key-1)' |
|
||||
/p:BARBuildId=$(BARBuildId) |
|
||||
/p:MaestroApiEndpoint='$(MaestroApiEndPoint)' |
|
||||
/p:BuildAssetRegistryToken='$(MaestroApiAccessToken)' |
|
||||
/p:ManifestsBasePath='$(Build.ArtifactStagingDirectory)/AssetManifests/' |
|
||||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/' |
|
||||
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts/' |
|
||||
/p:Configuration=Release |
|
||||
/p:PublishInstallersAndChecksums=${{ parameters.publishInstallersAndChecksums }} |
|
||||
/p:ChecksumsTargetStaticFeed=$(InternalChecksumsBlobFeedUrl) |
|
||||
/p:ChecksumsAzureAccountKey=$(InternalChecksumsBlobFeedKey) |
|
||||
/p:InstallersTargetStaticFeed=$(InternalInstallersBlobFeedUrl) |
|
||||
/p:InstallersAzureAccountKey=$(InternalInstallersBlobFeedKey) |
|
||||
/p:AzureDevOpsStaticShippingFeed='${{ parameters.shippingFeed }}' |
|
||||
/p:AzureDevOpsStaticShippingFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|
||||
/p:AzureDevOpsStaticTransportFeed='${{ parameters.transportFeed }}' |
|
||||
/p:AzureDevOpsStaticTransportFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|
||||
/p:AzureDevOpsStaticSymbolsFeed='${{ parameters.symbolsFeed }}' |
|
||||
/p:AzureDevOpsStaticSymbolsFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|
||||
/p:PublishToMSDL=false |
|
||||
${{ parameters.artifactsPublishingAdditionalParameters }} |
|
||||
|
|
||||
- template: ../../steps/publish-logs.yml |
|
||||
parameters: |
|
||||
StageLabel: '${{ parameters.stageName }}' |
|
||||
JobLabel: 'AssetsPublishing' |
|
||||
|
|
||||
- template: ../../steps/add-build-to-channel.yml |
|
||||
parameters: |
|
||||
ChannelId: ${{ parameters.channelId }} |
|
||||
@ -1,192 +0,0 @@ |
|||||
parameters: |
|
||||
BARBuildId: '' |
|
||||
PromoteToChannelIds: '' |
|
||||
artifactsPublishingAdditionalParameters: '' |
|
||||
dependsOn: |
|
||||
- Validate |
|
||||
publishInstallersAndChecksums: true |
|
||||
symbolPublishingAdditionalParameters: '' |
|
||||
stageName: '' |
|
||||
channelName: '' |
|
||||
channelId: '' |
|
||||
transportFeed: '' |
|
||||
shippingFeed: '' |
|
||||
symbolsFeed: '' |
|
||||
# If the channel name is empty, no links will be generated |
|
||||
akaMSChannelName: '' |
|
||||
|
|
||||
stages: |
|
||||
- stage: ${{ parameters.stageName }} |
|
||||
dependsOn: ${{ parameters.dependsOn }} |
|
||||
variables: |
|
||||
- template: ../common-variables.yml |
|
||||
displayName: ${{ parameters.channelName }} Publishing |
|
||||
jobs: |
|
||||
- template: ../setup-maestro-vars.yml |
|
||||
parameters: |
|
||||
BARBuildId: ${{ parameters.BARBuildId }} |
|
||||
PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }} |
|
||||
|
|
||||
- job: publish_symbols |
|
||||
displayName: Symbol Publishing |
|
||||
dependsOn: setupMaestroVars |
|
||||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.TargetChannels'], format('[{0}]', ${{ parameters.channelId }} )) |
|
||||
variables: |
|
||||
- group: DotNet-Symbol-Server-Pats |
|
||||
- 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: |
|
||||
- script: echo "##vso[task.logissue type=warning]Going forward, v2 Arcade publishing is no longer supported. Please read https://github.com/dotnet/arcade/blob/main/Documentation/CorePackages/Publishing.md for details, then contact dnceng if you have further questions." |
|
||||
displayName: Warn about v2 Arcade Publishing Usage |
|
||||
|
|
||||
- task: DownloadBuildArtifacts@0 |
|
||||
displayName: Download Build Assets |
|
||||
continueOnError: true |
|
||||
inputs: |
|
||||
buildType: specific |
|
||||
buildVersionToDownload: specific |
|
||||
project: $(AzDOProjectName) |
|
||||
pipeline: $(AzDOPipelineId) |
|
||||
buildId: $(AzDOBuildId) |
|
||||
downloadType: 'specific' |
|
||||
itemPattern: | |
|
||||
PdbArtifacts/** |
|
||||
BlobArtifacts/** |
|
||||
downloadPath: '$(Build.ArtifactStagingDirectory)' |
|
||||
checkDownloadedFiles: true |
|
||||
|
|
||||
# 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: 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:SymbolPublishingExclusionsFile='$(Build.SourcesDirectory)/eng/SymbolPublishingExclusionsFile.txt' |
|
||||
/p:Configuration=Release |
|
||||
${{ parameters.symbolPublishingAdditionalParameters }} |
|
||||
|
|
||||
- template: ../../steps/publish-logs.yml |
|
||||
parameters: |
|
||||
StageLabel: '${{ parameters.stageName }}' |
|
||||
JobLabel: 'SymbolPublishing' |
|
||||
|
|
||||
- job: publish_assets |
|
||||
displayName: Publish Assets |
|
||||
dependsOn: setupMaestroVars |
|
||||
timeoutInMinutes: 120 |
|
||||
variables: |
|
||||
- name: BARBuildId |
|
||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] |
|
||||
- name: IsStableBuild |
|
||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] |
|
||||
- name: AzDOProjectName |
|
||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOProjectName'] ] |
|
||||
- name: AzDOPipelineId |
|
||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOPipelineId'] ] |
|
||||
- name: AzDOBuildId |
|
||||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.AzDOBuildId'] ] |
|
||||
- name: ArtifactsCategory |
|
||||
value: ${{ coalesce(variables._DotNetArtifactsCategory, '.NETCore') }} |
|
||||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.TargetChannels'], format('[{0}]', ${{ parameters.channelId }} )) |
|
||||
pool: |
|
||||
vmImage: 'windows-2019' |
|
||||
steps: |
|
||||
- script: echo "##vso[task.logissue type=warning]Going forward, v2 Arcade publishing is no longer supported. Please read https://github.com/dotnet/arcade/blob/main/Documentation/CorePackages/Publishing.md for details, then contact dnceng if you have further questions." |
|
||||
displayName: Warn about v2 Arcade Publishing Usage |
|
||||
|
|
||||
- task: DownloadBuildArtifacts@0 |
|
||||
displayName: Download Build Assets |
|
||||
continueOnError: true |
|
||||
inputs: |
|
||||
buildType: specific |
|
||||
buildVersionToDownload: specific |
|
||||
project: $(AzDOProjectName) |
|
||||
pipeline: $(AzDOPipelineId) |
|
||||
buildId: $(AzDOBuildId) |
|
||||
downloadType: 'specific' |
|
||||
itemPattern: | |
|
||||
PackageArtifacts/** |
|
||||
BlobArtifacts/** |
|
||||
AssetManifests/** |
|
||||
downloadPath: '$(Build.ArtifactStagingDirectory)' |
|
||||
checkDownloadedFiles: true |
|
||||
|
|
||||
- task: NuGetToolInstaller@1 |
|
||||
displayName: 'Install NuGet.exe' |
|
||||
|
|
||||
# This is necessary whenever we want to publish/restore to an AzDO 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: Publish Assets |
|
||||
inputs: |
|
||||
filePath: eng\common\sdk-task.ps1 |
|
||||
arguments: -task PublishArtifactsInManifest -restore -msbuildEngine dotnet |
|
||||
/p:PublishingInfraVersion=2 |
|
||||
/p:ArtifactsCategory=$(ArtifactsCategory) |
|
||||
/p:IsStableBuild=$(IsStableBuild) |
|
||||
/p:IsInternalBuild=$(IsInternalBuild) |
|
||||
/p:RepositoryName=$(Build.Repository.Name) |
|
||||
/p:CommitSha=$(Build.SourceVersion) |
|
||||
/p:NugetPath=$(NuGetExeToolPath) |
|
||||
/p:AzdoTargetFeedPAT='$(dn-bot-dnceng-universal-packages-rw)' |
|
||||
/p:AzureStorageTargetFeedPAT='$(dotnetfeed-storage-access-key-1)' |
|
||||
/p:BARBuildId=$(BARBuildId) |
|
||||
/p:MaestroApiEndpoint='$(MaestroApiEndPoint)' |
|
||||
/p:BuildAssetRegistryToken='$(MaestroApiAccessToken)' |
|
||||
/p:ManifestsBasePath='$(Build.ArtifactStagingDirectory)/AssetManifests/' |
|
||||
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/' |
|
||||
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts/' |
|
||||
/p:Configuration=Release |
|
||||
/p:PublishInstallersAndChecksums=${{ parameters.publishInstallersAndChecksums }} |
|
||||
/p:InstallersTargetStaticFeed=$(InstallersBlobFeedUrl) |
|
||||
/p:InstallersAzureAccountKey=$(dotnetcli-storage-key) |
|
||||
/p:ChecksumsTargetStaticFeed=$(ChecksumsBlobFeedUrl) |
|
||||
/p:ChecksumsAzureAccountKey=$(dotnetclichecksums-storage-key) |
|
||||
/p:AzureDevOpsStaticShippingFeed='${{ parameters.shippingFeed }}' |
|
||||
/p:AzureDevOpsStaticShippingFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|
||||
/p:AzureDevOpsStaticTransportFeed='${{ parameters.transportFeed }}' |
|
||||
/p:AzureDevOpsStaticTransportFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|
||||
/p:AzureDevOpsStaticSymbolsFeed='${{ parameters.symbolsFeed }}' |
|
||||
/p:AzureDevOpsStaticSymbolsFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|
||||
/p:LatestLinkShortUrlPrefix=dotnet/'${{ parameters.akaMSChannelName }}' |
|
||||
/p:AkaMSClientId=$(akams-client-id) |
|
||||
/p:AkaMSClientSecret=$(akams-client-secret) |
|
||||
${{ parameters.artifactsPublishingAdditionalParameters }} |
|
||||
|
|
||||
- template: ../../steps/publish-logs.yml |
|
||||
parameters: |
|
||||
StageLabel: '${{ parameters.stageName }}' |
|
||||
JobLabel: 'AssetsPublishing' |
|
||||
|
|
||||
- template: ../../steps/add-build-to-channel.yml |
|
||||
parameters: |
|
||||
ChannelId: ${{ parameters.channelId }} |
|
||||
Loading…
Reference in new issue