63 changed files with 1439 additions and 950 deletions
@ -0,0 +1,6 @@ |
|||
param( |
|||
[string] $token |
|||
) |
|||
|
|||
Write-Host "##vso[task.setvariable variable=VSS_NUGET_ACCESSTOKEN]$token" |
|||
Write-Host "##vso[task.setvariable variable=VSS_NUGET_URI_PREFIXES]https://dnceng.pkgs.visualstudio.com/;https://pkgs.dev.azure.com/dnceng/;https://devdiv.pkgs.visualstudio.com/;https://pkgs.dev.azure.com/devdiv/" |
|||
@ -1,29 +0,0 @@ |
|||
param ( |
|||
$dotnetsymbolVersion = $null |
|||
) |
|||
|
|||
$ErrorActionPreference = "Stop" |
|||
Set-StrictMode -Version 2.0 |
|||
|
|||
. $PSScriptRoot\..\tools.ps1 |
|||
|
|||
$verbosity = "minimal" |
|||
|
|||
function Installdotnetsymbol ($dotnetsymbolVersion) { |
|||
$dotnetsymbolPackageName = "dotnet-symbol" |
|||
|
|||
$dotnetRoot = InitializeDotNetCli -install:$true |
|||
$dotnet = "$dotnetRoot\dotnet.exe" |
|||
$toolList = & "$dotnet" tool list --global |
|||
|
|||
if (($toolList -like "*$dotnetsymbolPackageName*") -and ($toolList -like "*$dotnetsymbolVersion*")) { |
|||
Write-Host "dotnet-symbol version $dotnetsymbolVersion is already installed." |
|||
} |
|||
else { |
|||
Write-Host "Installing dotnet-symbol version $dotnetsymbolVersion..." |
|||
Write-Host "You may need to restart your command window if this is the first dotnet tool you have installed." |
|||
& "$dotnet" tool install $dotnetsymbolPackageName --version $dotnetsymbolVersion --verbosity $verbosity --global |
|||
} |
|||
} |
|||
|
|||
Installdotnetsymbol $dotnetsymbolVersion |
|||
@ -1,29 +0,0 @@ |
|||
param ( |
|||
$sourcelinkCliVersion = $null |
|||
) |
|||
|
|||
$ErrorActionPreference = "Stop" |
|||
Set-StrictMode -Version 2.0 |
|||
|
|||
. $PSScriptRoot\..\tools.ps1 |
|||
|
|||
$verbosity = "minimal" |
|||
|
|||
function InstallSourcelinkCli ($sourcelinkCliVersion) { |
|||
$sourcelinkCliPackageName = "sourcelink" |
|||
|
|||
$dotnetRoot = InitializeDotNetCli -install:$true |
|||
$dotnet = "$dotnetRoot\dotnet.exe" |
|||
$toolList = & "$dotnet" tool list --global |
|||
|
|||
if (($toolList -like "*$sourcelinkCliPackageName*") -and ($toolList -like "*$sourcelinkCliVersion*")) { |
|||
Write-Host "SourceLink CLI version $sourcelinkCliVersion is already installed." |
|||
} |
|||
else { |
|||
Write-Host "Installing SourceLink CLI version $sourcelinkCliVersion..." |
|||
Write-Host "You may need to restart your command window if this is the first dotnet tool you have installed." |
|||
& "$dotnet" tool install $sourcelinkCliPackageName --version $sourcelinkCliVersion --verbosity $verbosity --global |
|||
} |
|||
} |
|||
|
|||
InstallSourcelinkCli $sourcelinkCliVersion |
|||
@ -1,4 +1,4 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<packages> |
|||
<package id="Microsoft.Guardian.Cli" version="0.7.1"/> |
|||
<package id="Microsoft.Guardian.Cli" version="0.7.2"/> |
|||
</packages> |
|||
|
|||
@ -1,147 +0,0 @@ |
|||
parameters: |
|||
enableSymbolValidation: true |
|||
|
|||
stages: |
|||
- stage: IS_Publish |
|||
dependsOn: validate |
|||
variables: |
|||
- template: ../common-variables.yml |
|||
displayName: Internal Servicing |
|||
jobs: |
|||
- template: ../setup-maestro-vars.yml |
|||
|
|||
- job: |
|||
displayName: Symbol Publishing |
|||
dependsOn: setupMaestroVars |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.InternalServicing_30_Channel_Id)) |
|||
variables: |
|||
- group: DotNet-Symbol-Server-Pats |
|||
pool: |
|||
vmImage: 'windows-2019' |
|||
steps: |
|||
- task: DownloadBuildArtifacts@0 |
|||
displayName: Download Artifacts |
|||
inputs: |
|||
downloadType: specific files |
|||
matchingPattern: "*Artifacts*" |
|||
|
|||
- 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: publish_assets |
|||
displayName: Publish Assets |
|||
dependsOn: setupMaestroVars |
|||
variables: |
|||
- group: DotNet-Blob-Feed |
|||
- group: AzureDevOps-Artifact-Feeds-Pats |
|||
- name: BARBuildId |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] |
|||
- name: IsStableBuild |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.InternalServicing_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: Add Assets Location |
|||
env: |
|||
AZURE_DEVOPS_EXT_PAT: $(dn-bot-dnceng-unviersal-packages-rw) |
|||
inputs: |
|||
filePath: eng\common\sdk-task.ps1 |
|||
arguments: -task PublishArtifactsInManifest -restore -msbuildEngine dotnet |
|||
/p:ChannelId=$(InternalServicing_30_Channel_Id) |
|||
/p:IsStableBuild=$(IsStableBuild) |
|||
/p:IsInternalBuild=$(IsInternalBuild) |
|||
/p:RepositoryName=$(Build.Repository.Name) |
|||
/p:CommitSha=$(Build.SourceVersion) |
|||
/p:AzureStorageAccountName=$(ProxyBackedFeedsAccountName) |
|||
/p:AzureStorageAccountKey=$(dotnetfeed-storage-access-key-1) |
|||
/p:AzureDevOpsFeedsBaseUrl=$(dotnetfeed-internal-private-feed-url) |
|||
/p:StaticInternalFeed=$(dotnetfeed-internal-nonstable-feed-url) |
|||
/p:NugetPath=$(Agent.BuildDirectory)\Nuget\NuGet.exe |
|||
/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 |
|||
|
|||
- task: NuGetCommand@2 |
|||
displayName: Publish Packages to AzDO Feed |
|||
condition: contains(variables['TargetAzDOFeed'], 'pkgs.visualstudio.com') |
|||
inputs: |
|||
command: push |
|||
vstsFeed: $(AzDoFeedName) |
|||
packagesToPush: $(Build.ArtifactStagingDirectory)\PackageArtifacts\*.nupkg |
|||
publishVstsFeed: $(AzDoFeedName) |
|||
|
|||
- task: PowerShell@2 |
|||
displayName: Publish Blobs to AzDO Feed |
|||
inputs: |
|||
filePath: $(Build.SourcesDirectory)/eng/common/post-build/publish-blobs-to-azdo.ps1 |
|||
arguments: -FeedName $(AzDoFeedName) |
|||
-SourceFolderCollection $(Build.ArtifactStagingDirectory)/BlobArtifacts/ |
|||
-PersonalAccessToken $(dn-bot-dnceng-unviersal-packages-rw) |
|||
enabled: false |
|||
|
|||
- template: ../trigger-subscription.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.InternalServicing_30_Channel_Id }} |
|||
|
|||
- stage: IS_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'], format('[{0}]', variables.InternalServicing_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) |
|||
|
|||
- template: ../promote-build.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.InternalServicing_30_Channel_Id }} |
|||
@ -0,0 +1,95 @@ |
|||
parameters: |
|||
artifactsPublishingAdditionalParameters: '' |
|||
publishInstallersAndChecksums: false |
|||
|
|||
stages: |
|||
- stage: NetCore_3_Tools_Validation_Publish |
|||
dependsOn: validate |
|||
variables: |
|||
- template: ../common-variables.yml |
|||
displayName: .NET 3 Tools - Validation Publishing |
|||
jobs: |
|||
- template: ../setup-maestro-vars.yml |
|||
|
|||
- job: publish_assets |
|||
displayName: Publish Assets |
|||
dependsOn: setupMaestroVars |
|||
variables: |
|||
- group: DotNet-Blob-Feed |
|||
- group: AzureDevOps-Artifact-Feeds-Pats |
|||
- name: BARBuildId |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] |
|||
- name: IsStableBuild |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.NETCore_3_Tools_Validation_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: 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:ArtifactsCategory=$(_DotNetValidationArtifactsCategory) |
|||
/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:PublishToAzureDevOpsNuGetFeeds=true |
|||
/p:AzureDevOpsStaticShippingFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticShippingFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
/p:AzureDevOpsStaticTransportFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticTransportFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
/p:AzureDevOpsStaticSymbolsFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools-symbols/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticSymbolsFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
${{ parameters.artifactsPublishingAdditionalParameters }} |
|||
|
|||
- template: ../../steps/promote-build.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.NETCore_3_Tools_Validation_Channel_Id }} |
|||
@ -0,0 +1,130 @@ |
|||
parameters: |
|||
symbolPublishingAdditionalParameters: '' |
|||
artifactsPublishingAdditionalParameters: '' |
|||
publishInstallersAndChecksums: false |
|||
|
|||
stages: |
|||
- stage: NetCore_3_Tools_Publish |
|||
dependsOn: validate |
|||
variables: |
|||
- template: ../common-variables.yml |
|||
displayName: .NET 3 Tools Publishing |
|||
jobs: |
|||
- template: ../setup-maestro-vars.yml |
|||
|
|||
- job: |
|||
displayName: Symbol Publishing |
|||
dependsOn: setupMaestroVars |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.NetCore_3_Tools_Channel_Id)) |
|||
variables: |
|||
- group: DotNet-Symbol-Server-Pats |
|||
pool: |
|||
vmImage: 'windows-2019' |
|||
steps: |
|||
- task: DownloadBuildArtifacts@0 |
|||
displayName: Download Blob Artifacts |
|||
inputs: |
|||
artifactName: 'BlobArtifacts' |
|||
continueOnError: true |
|||
|
|||
- task: DownloadBuildArtifacts@0 |
|||
displayName: Download PDB Artifacts |
|||
inputs: |
|||
artifactName: 'PDBArtifacts' |
|||
continueOnError: true |
|||
|
|||
- 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 }} |
|||
|
|||
- job: publish_assets |
|||
displayName: Publish Assets |
|||
dependsOn: setupMaestroVars |
|||
variables: |
|||
- group: DotNet-Blob-Feed |
|||
- group: AzureDevOps-Artifact-Feeds-Pats |
|||
- name: BARBuildId |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] |
|||
- name: IsStableBuild |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.NetCore_3_Tools_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: 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:ArtifactsCategory=$(_DotNetArtifactsCategory) |
|||
/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:PublishToAzureDevOpsNuGetFeeds=true |
|||
/p:AzureDevOpsStaticShippingFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticShippingFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
/p:AzureDevOpsStaticTransportFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticTransportFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
/p:AzureDevOpsStaticSymbolsFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools-symbols/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticSymbolsFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
${{ parameters.artifactsPublishingAdditionalParameters }} |
|||
|
|||
- template: ../../steps/promote-build.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.NetCore_3_Tools_Channel_Id }} |
|||
@ -0,0 +1,130 @@ |
|||
parameters: |
|||
symbolPublishingAdditionalParameters: '' |
|||
artifactsPublishingAdditionalParameters: '' |
|||
publishInstallersAndChecksums: false |
|||
|
|||
stages: |
|||
- stage: NetCore_Dev31_Publish |
|||
dependsOn: validate |
|||
variables: |
|||
- template: ../common-variables.yml |
|||
displayName: .NET Core 3.1 Dev Publishing |
|||
jobs: |
|||
- template: ../setup-maestro-vars.yml |
|||
|
|||
- job: |
|||
displayName: Symbol Publishing |
|||
dependsOn: setupMaestroVars |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.PublicDevRelease_31_Channel_Id)) |
|||
variables: |
|||
- group: DotNet-Symbol-Server-Pats |
|||
pool: |
|||
vmImage: 'windows-2019' |
|||
steps: |
|||
- task: DownloadBuildArtifacts@0 |
|||
displayName: Download Blob Artifacts |
|||
inputs: |
|||
artifactName: 'BlobArtifacts' |
|||
continueOnError: true |
|||
|
|||
- task: DownloadBuildArtifacts@0 |
|||
displayName: Download PDB Artifacts |
|||
inputs: |
|||
artifactName: 'PDBArtifacts' |
|||
continueOnError: true |
|||
|
|||
- 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 }} |
|||
|
|||
- job: publish_assets |
|||
displayName: Publish Assets |
|||
dependsOn: setupMaestroVars |
|||
variables: |
|||
- group: DotNet-Blob-Feed |
|||
- group: AzureDevOps-Artifact-Feeds-Pats |
|||
- name: BARBuildId |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] |
|||
- name: IsStableBuild |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.PublicDevRelease_31_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: 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:ArtifactsCategory=$(_DotNetArtifactsCategory) |
|||
/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:PublishToAzureDevOpsNuGetFeeds=true |
|||
/p:AzureDevOpsStaticShippingFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticShippingFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
/p:AzureDevOpsStaticTransportFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1-transport/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticTransportFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
/p:AzureDevOpsStaticSymbolsFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1-symbols/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticSymbolsFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
${{ parameters.artifactsPublishingAdditionalParameters }} |
|||
|
|||
- template: ../../steps/promote-build.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.PublicDevRelease_31_Channel_Id }} |
|||
@ -0,0 +1,128 @@ |
|||
parameters: |
|||
symbolPublishingAdditionalParameters: '' |
|||
artifactsPublishingAdditionalParameters: '' |
|||
|
|||
stages: |
|||
- stage: NetCore_30_Internal_Servicing_Publishing |
|||
dependsOn: validate |
|||
variables: |
|||
- template: ../common-variables.yml |
|||
displayName: .NET Core 3.0 Internal Servicing Publishing |
|||
jobs: |
|||
- template: ../setup-maestro-vars.yml |
|||
|
|||
- job: |
|||
displayName: Symbol Publishing |
|||
dependsOn: setupMaestroVars |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.InternalServicing_30_Channel_Id)) |
|||
variables: |
|||
- group: DotNet-Symbol-Server-Pats |
|||
pool: |
|||
vmImage: 'windows-2019' |
|||
steps: |
|||
- task: DownloadBuildArtifacts@0 |
|||
displayName: Download Blob Artifacts |
|||
inputs: |
|||
artifactName: 'BlobArtifacts' |
|||
continueOnError: true |
|||
|
|||
- task: DownloadBuildArtifacts@0 |
|||
displayName: Download PDB Artifacts |
|||
inputs: |
|||
artifactName: 'PDBArtifacts' |
|||
continueOnError: true |
|||
|
|||
- 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 }} |
|||
|
|||
- job: publish_assets |
|||
displayName: Publish Assets |
|||
dependsOn: setupMaestroVars |
|||
variables: |
|||
- group: DotNet-Blob-Feed |
|||
- group: AzureDevOps-Artifact-Feeds-Pats |
|||
- name: BARBuildId |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] |
|||
- name: IsStableBuild |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.InternalServicing_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: 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: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=true |
|||
/p:ChecksumsTargetStaticFeed=$(InternalChecksumsBlobFeedUrl) |
|||
/p:ChecksumsAzureAccountKey=$(InternalChecksumsBlobFeedKey) |
|||
/p:InstallersTargetStaticFeed=$(InternalInstallersBlobFeedUrl) |
|||
/p:InstallersAzureAccountKey=$(InternalInstallersBlobFeedKey) |
|||
/p:PublishToAzureDevOpsNuGetFeeds=true |
|||
/p:AzureDevOpsStaticShippingFeed='https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticShippingFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
/p:AzureDevOpsStaticTransportFeed='https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal-transport/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticTransportFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
/p:AzureDevOpsStaticSymbolsFeed='https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal-symbols/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticSymbolsFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
${{ parameters.artifactsPublishingAdditionalParameters }} |
|||
|
|||
- template: ../../steps/promote-build.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.InternalServicing_30_Channel_Id }} |
|||
@ -0,0 +1,130 @@ |
|||
parameters: |
|||
symbolPublishingAdditionalParameters: '' |
|||
artifactsPublishingAdditionalParameters: '' |
|||
publishInstallersAndChecksums: false |
|||
|
|||
stages: |
|||
- stage: NetCore_Release30_Publish |
|||
dependsOn: validate |
|||
variables: |
|||
- template: ../common-variables.yml |
|||
displayName: .NET Core 3.0 Release Publishing |
|||
jobs: |
|||
- template: ../setup-maestro-vars.yml |
|||
|
|||
- job: |
|||
displayName: Symbol Publishing |
|||
dependsOn: setupMaestroVars |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.PublicRelease_30_Channel_Id)) |
|||
variables: |
|||
- group: DotNet-Symbol-Server-Pats |
|||
pool: |
|||
vmImage: 'windows-2019' |
|||
steps: |
|||
- task: DownloadBuildArtifacts@0 |
|||
displayName: Download Blob Artifacts |
|||
inputs: |
|||
artifactName: 'BlobArtifacts' |
|||
continueOnError: true |
|||
|
|||
- task: DownloadBuildArtifacts@0 |
|||
displayName: Download PDB Artifacts |
|||
inputs: |
|||
artifactName: 'PDBArtifacts' |
|||
continueOnError: true |
|||
|
|||
- 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 }} |
|||
|
|||
- job: publish_assets |
|||
displayName: Publish Assets |
|||
dependsOn: setupMaestroVars |
|||
variables: |
|||
- group: DotNet-Blob-Feed |
|||
- group: AzureDevOps-Artifact-Feeds-Pats |
|||
- name: BARBuildId |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] |
|||
- name: IsStableBuild |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.PublicRelease_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: 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:ArtifactsCategory=$(_DotNetArtifactsCategory) |
|||
/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:PublishToAzureDevOpsNuGetFeeds=true |
|||
/p:AzureDevOpsStaticShippingFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticShippingFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
/p:AzureDevOpsStaticTransportFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3-transport/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticTransportFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
/p:AzureDevOpsStaticSymbolsFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3-symbols/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticSymbolsFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
${{ parameters.artifactsPublishingAdditionalParameters }} |
|||
|
|||
- template: ../../steps/promote-build.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.PublicRelease_30_Channel_Id }} |
|||
@ -0,0 +1,130 @@ |
|||
parameters: |
|||
symbolPublishingAdditionalParameters: '' |
|||
artifactsPublishingAdditionalParameters: '' |
|||
publishInstallersAndChecksums: false |
|||
|
|||
stages: |
|||
- stage: NetCore_Release31_Publish |
|||
dependsOn: validate |
|||
variables: |
|||
- template: ../common-variables.yml |
|||
displayName: .NET Core 3.1 Release Publishing |
|||
jobs: |
|||
- template: ../setup-maestro-vars.yml |
|||
|
|||
- job: |
|||
displayName: Symbol Publishing |
|||
dependsOn: setupMaestroVars |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.PublicRelease_31_Channel_Id)) |
|||
variables: |
|||
- group: DotNet-Symbol-Server-Pats |
|||
pool: |
|||
vmImage: 'windows-2019' |
|||
steps: |
|||
- task: DownloadBuildArtifacts@0 |
|||
displayName: Download Blob Artifacts |
|||
inputs: |
|||
artifactName: 'BlobArtifacts' |
|||
continueOnError: true |
|||
|
|||
- task: DownloadBuildArtifacts@0 |
|||
displayName: Download PDB Artifacts |
|||
inputs: |
|||
artifactName: 'PDBArtifacts' |
|||
continueOnError: true |
|||
|
|||
- 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 }} |
|||
|
|||
- job: publish_assets |
|||
displayName: Publish Assets |
|||
dependsOn: setupMaestroVars |
|||
variables: |
|||
- group: DotNet-Blob-Feed |
|||
- group: AzureDevOps-Artifact-Feeds-Pats |
|||
- name: BARBuildId |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] |
|||
- name: IsStableBuild |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.PublicRelease_31_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: 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:ArtifactsCategory=$(_DotNetArtifactsCategory) |
|||
/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:PublishToAzureDevOpsNuGetFeeds=true |
|||
/p:AzureDevOpsStaticShippingFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticShippingFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
/p:AzureDevOpsStaticTransportFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1-transport/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticTransportFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
/p:AzureDevOpsStaticSymbolsFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1-symbols/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticSymbolsFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
${{ parameters.artifactsPublishingAdditionalParameters }} |
|||
|
|||
- template: ../../steps/promote-build.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.PublicRelease_31_Channel_Id }} |
|||
@ -0,0 +1,95 @@ |
|||
parameters: |
|||
artifactsPublishingAdditionalParameters: '' |
|||
publishInstallersAndChecksums: false |
|||
|
|||
stages: |
|||
- stage: PVR_Publish |
|||
dependsOn: validate |
|||
variables: |
|||
- template: ../common-variables.yml |
|||
displayName: .NET Tools - Validation Publishing |
|||
jobs: |
|||
- template: ../setup-maestro-vars.yml |
|||
|
|||
- job: publish_assets |
|||
displayName: Publish Assets |
|||
dependsOn: setupMaestroVars |
|||
variables: |
|||
- group: DotNet-Blob-Feed |
|||
- group: AzureDevOps-Artifact-Feeds-Pats |
|||
- name: BARBuildId |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] |
|||
- name: IsStableBuild |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.NetCore_Tools_Validation_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: 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:ArtifactsCategory=$(_DotNetValidationArtifactsCategory) |
|||
/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:PublishToAzureDevOpsNuGetFeeds=true |
|||
/p:AzureDevOpsStaticShippingFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticShippingFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
/p:AzureDevOpsStaticTransportFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticTransportFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
/p:AzureDevOpsStaticSymbolsFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools-symbols/nuget/v3/index.json' |
|||
/p:AzureDevOpsStaticSymbolsFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)' |
|||
${{ parameters.artifactsPublishingAdditionalParameters }} |
|||
|
|||
- template: ../../steps/promote-build.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.NetCore_Tools_Validation_Channel_Id }} |
|||
@ -1,148 +0,0 @@ |
|||
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'], format('[{0}]', variables.PublicDevRelease_30_Channel_Id)) |
|||
variables: |
|||
- group: DotNet-Symbol-Server-Pats |
|||
pool: |
|||
vmImage: 'windows-2019' |
|||
steps: |
|||
- task: DownloadBuildArtifacts@0 |
|||
displayName: Download Artifacts |
|||
inputs: |
|||
downloadType: specific files |
|||
matchingPattern: "*Artifacts*" |
|||
|
|||
- 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 Assets |
|||
dependsOn: setupMaestroVars |
|||
variables: |
|||
- group: DotNet-Blob-Feed |
|||
- group: AzureDevOps-Artifact-Feeds-Pats |
|||
- name: BARBuildId |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] |
|||
- name: IsStableBuild |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', 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: Add Assets Location |
|||
env: |
|||
AZURE_DEVOPS_EXT_PAT: $(dn-bot-dnceng-unviersal-packages-rw) |
|||
inputs: |
|||
filePath: eng\common\sdk-task.ps1 |
|||
arguments: -task PublishArtifactsInManifest -restore -msbuildEngine dotnet |
|||
/p:ChannelId=$(PublicDevRelease_30_Channel_Id) |
|||
/p:ArtifactsCategory=$(_DotNetArtifactsCategory) |
|||
/p:IsStableBuild=$(IsStableBuild) |
|||
/p:IsInternalBuild=$(IsInternalBuild) |
|||
/p:RepositoryName=$(Build.Repository.Name) |
|||
/p:CommitSha=$(Build.SourceVersion) |
|||
/p:NugetPath=$(Agent.BuildDirectory)\Nuget\NuGet.exe |
|||
/p:AzdoTargetFeedPAT='$(dn-bot-dnceng-unviersal-packages-rw)' |
|||
/p:TargetFeedPAT='$(dn-bot-dnceng-unviersal-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 |
|||
|
|||
- task: NuGetCommand@2 |
|||
displayName: Publish Packages to AzDO Feed |
|||
condition: contains(variables['TargetAzDOFeed'], 'pkgs.visualstudio.com') |
|||
inputs: |
|||
command: push |
|||
vstsFeed: $(AzDoFeedName) |
|||
packagesToPush: $(Build.ArtifactStagingDirectory)\PackageArtifacts\*.nupkg |
|||
publishVstsFeed: $(AzDoFeedName) |
|||
|
|||
- task: PowerShell@2 |
|||
displayName: Publish Blobs to AzDO Feed |
|||
inputs: |
|||
filePath: $(Build.SourcesDirectory)/eng/common/post-build/publish-blobs-to-azdo.ps1 |
|||
arguments: -FeedName $(AzDoFeedName) |
|||
-SourceFolderCollection $(Build.ArtifactStagingDirectory)/BlobArtifacts/ |
|||
-PersonalAccessToken $(dn-bot-dnceng-unviersal-packages-rw) |
|||
enabled: false |
|||
|
|||
|
|||
- 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'], format('[{0}]', 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) |
|||
|
|||
- template: ../darc-gather-drop.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.PublicDevRelease_30_Channel_Id }} |
|||
|
|||
- template: ../promote-build.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.PublicDevRelease_30_Channel_Id }} |
|||
@ -1,147 +0,0 @@ |
|||
parameters: |
|||
enableSymbolValidation: true |
|||
|
|||
stages: |
|||
- stage: PubRel_Publish |
|||
dependsOn: validate |
|||
variables: |
|||
- template: ../common-variables.yml |
|||
displayName: Public Release |
|||
jobs: |
|||
- template: ../setup-maestro-vars.yml |
|||
|
|||
- job: |
|||
displayName: Symbol Publishing |
|||
dependsOn: setupMaestroVars |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.PublicRelease_30_Channel_Id)) |
|||
variables: |
|||
- group: DotNet-Symbol-Server-Pats |
|||
pool: |
|||
vmImage: 'windows-2019' |
|||
steps: |
|||
- task: DownloadBuildArtifacts@0 |
|||
displayName: Download Artifacts |
|||
inputs: |
|||
downloadType: specific files |
|||
matchingPattern: "*Artifacts*" |
|||
|
|||
- 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: publish_assets |
|||
displayName: Publish Assets |
|||
dependsOn: setupMaestroVars |
|||
variables: |
|||
- group: DotNet-Blob-Feed |
|||
- group: AzureDevOps-Artifact-Feeds-Pats |
|||
- name: BARBuildId |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] |
|||
- name: IsStableBuild |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.PublicRelease_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 |
|||
env: |
|||
AZURE_DEVOPS_EXT_PAT: $(dn-bot-dnceng-unviersal-packages-rw) |
|||
inputs: |
|||
filePath: eng\common\sdk-task.ps1 |
|||
arguments: -task PublishArtifactsInManifest -restore -msbuildEngine dotnet |
|||
/p:ChannelId=$(PublicRelease_30_Channel_Id) |
|||
/p:IsStableBuild=$(IsStableBuild) |
|||
/p:IsInternalBuild=$(IsInternalBuild) |
|||
/p:RepositoryName=$(Build.Repository.Name) |
|||
/p:CommitSha=$(Build.SourceVersion) |
|||
/p:AzureStorageAccountName=$(ProxyBackedFeedsAccountName) |
|||
/p:AzureStorageAccountKey=$(dotnetfeed-storage-access-key-1) |
|||
/p:AzureDevOpsFeedsBaseUrl=$(dotnetfeed-internal-private-feed-url) |
|||
/p:StaticInternalFeed=$(dotnetfeed-internal-nonstable-feed-url) |
|||
/p:NugetPath=$(Agent.BuildDirectory)\Nuget\NuGet.exe |
|||
/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 |
|||
|
|||
- task: NuGetCommand@2 |
|||
displayName: Publish Packages to AzDO Feed |
|||
condition: contains(variables['TargetAzDOFeed'], 'pkgs.visualstudio.com') |
|||
inputs: |
|||
command: push |
|||
vstsFeed: $(AzDoFeedName) |
|||
packagesToPush: $(Build.ArtifactStagingDirectory)\PackageArtifacts\*.nupkg |
|||
publishVstsFeed: $(AzDoFeedName) |
|||
|
|||
- task: PowerShell@2 |
|||
displayName: Publish Blobs to AzDO Feed |
|||
inputs: |
|||
filePath: $(Build.SourcesDirectory)/eng/common/post-build/publish-blobs-to-azdo.ps1 |
|||
arguments: -FeedName $(AzDoFeedName) |
|||
-SourceFolderCollection $(Build.ArtifactStagingDirectory)/BlobArtifacts/ |
|||
-PersonalAccessToken $(dn-bot-dnceng-unviersal-packages-rw) |
|||
enabled: false |
|||
|
|||
- template: ../trigger-subscription.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.PublicRelease_30_Channel_Id }} |
|||
|
|||
- stage: PubRel_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'], format('[{0}]', variables.PublicRelease_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) |
|||
|
|||
- template: ../promote-build.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.PublicRelease_30_Channel_Id }} |
|||
@ -1,99 +0,0 @@ |
|||
stages: |
|||
- stage: PVR_Publish |
|||
dependsOn: validate |
|||
variables: |
|||
- template: ../common-variables.yml |
|||
displayName: Validation Channel |
|||
jobs: |
|||
- template: ../setup-maestro-vars.yml |
|||
|
|||
- job: |
|||
displayName: Publish Assets |
|||
dependsOn: setupMaestroVars |
|||
variables: |
|||
- group: DotNet-Blob-Feed |
|||
- group: AzureDevOps-Artifact-Feeds-Pats |
|||
- name: BARBuildId |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ] |
|||
- name: IsStableBuild |
|||
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ] |
|||
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.PublicValidationRelease_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: Add Assets Location |
|||
env: |
|||
AZURE_DEVOPS_EXT_PAT: $(dn-bot-dnceng-unviersal-packages-rw) |
|||
inputs: |
|||
filePath: eng\common\sdk-task.ps1 |
|||
arguments: -task PublishArtifactsInManifest -restore -msbuildEngine dotnet |
|||
/p:ChannelId=$(PublicValidationRelease_30_Channel_Id) |
|||
/p:ArtifactsCategory=$(_DotNetValidationArtifactsCategory) |
|||
/p:IsStableBuild=$(IsStableBuild) |
|||
/p:IsInternalBuild=$(IsInternalBuild) |
|||
/p:RepositoryName=$(Build.Repository.Name) |
|||
/p:CommitSha=$(Build.SourceVersion) |
|||
/p:NugetPath=$(Agent.BuildDirectory)\Nuget\NuGet.exe |
|||
/p:AzdoTargetFeedPAT='$(dn-bot-dnceng-unviersal-packages-rw)' |
|||
/p:TargetFeedPAT='$(dn-bot-dnceng-unviersal-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 |
|||
|
|||
- task: NuGetCommand@2 |
|||
displayName: Publish Packages to AzDO Feed |
|||
condition: contains(variables['TargetAzDOFeed'], 'pkgs.visualstudio.com') |
|||
inputs: |
|||
command: push |
|||
vstsFeed: $(AzDoFeedName) |
|||
packagesToPush: $(Build.ArtifactStagingDirectory)\PackageArtifacts\*.nupkg |
|||
publishVstsFeed: $(AzDoFeedName) |
|||
|
|||
- task: PowerShell@2 |
|||
displayName: Publish Blobs to AzDO Feed |
|||
inputs: |
|||
filePath: $(Build.SourcesDirectory)/eng/common/post-build/publish-blobs-to-azdo.ps1 |
|||
arguments: -FeedName $(AzDoFeedName) |
|||
-SourceFolderCollection $(Build.ArtifactStagingDirectory)/BlobArtifacts/ |
|||
-PersonalAccessToken $(dn-bot-dnceng-unviersal-packages-rw) |
|||
enabled: false |
|||
|
|||
|
|||
- stage: PVR_PublishValidation |
|||
displayName: Publish Validation |
|||
variables: |
|||
- template: ../common-variables.yml |
|||
jobs: |
|||
- template: ../setup-maestro-vars.yml |
|||
|
|||
- template: ../darc-gather-drop.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.PublicValidationRelease_30_Channel_Id }} |
|||
|
|||
- template: ../promote-build.yml |
|||
parameters: |
|||
ChannelId: ${{ variables.PublicValidationRelease_30_Channel_Id }} |
|||
@ -0,0 +1,13 @@ |
|||
parameters: |
|||
ChannelId: 0 |
|||
|
|||
steps: |
|||
- task: PowerShell@2 |
|||
displayName: Add Build to Channel |
|||
inputs: |
|||
filePath: $(Build.SourcesDirectory)/eng/common/post-build/promote-build.ps1 |
|||
arguments: -BuildId $(BARBuildId) |
|||
-ChannelId ${{ parameters.ChannelId }} |
|||
-MaestroApiAccessToken $(MaestroApiAccessToken) |
|||
-MaestroApiEndPoint $(MaestroApiEndPoint) |
|||
-MaestroApiVersion $(MaestroApiVersion) |
|||
@ -1,13 +1,13 @@ |
|||
{ |
|||
"tools": { |
|||
"dotnet": "3.0.100-preview8-013656", |
|||
"dotnet": "3.1.201", |
|||
"runtimes": { |
|||
"aspnetcore": [ "2.1.13" ] |
|||
"aspnetcore": [ "2.1.17" ] |
|||
} |
|||
}, |
|||
|
|||
"msbuild-sdks": { |
|||
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19405.1", |
|||
"Microsoft.DotNet.Helix.Sdk": "2.0.0-beta.19405.1" |
|||
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19517.3", |
|||
"Microsoft.DotNet.Helix.Sdk": "2.0.0-beta.19517.3" |
|||
} |
|||
} |
|||
|
|||
|
After Width: | Height: | Size: 2.1 KiB |
@ -1,12 +1,12 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk.Web"> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>netcoreapp3.0</TargetFramework> |
|||
<TargetFramework>netcoreapp3.1</TargetFramework> |
|||
<IsShipping>false</IsShipping> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="3.0.0" /> |
|||
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="3.1.3" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
|
|||
Loading…
Reference in new issue