2019-06-13 12:10:50 +00:00
|
|
|
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'], variables.PublicDevRelease_30_Channel_Id)
|
|
|
|
variables:
|
|
|
|
- group: DotNet-Symbol-Server-Pats
|
|
|
|
pool:
|
|
|
|
vmImage: 'windows-2019'
|
|
|
|
steps:
|
|
|
|
- task: DownloadBuildArtifacts@0
|
2019-06-26 20:33:53 +00:00
|
|
|
displayName: Download Artifacts
|
2019-06-13 12:10:50 +00:00
|
|
|
inputs:
|
2019-06-26 20:33:53 +00:00
|
|
|
downloadType: specific files
|
|
|
|
matchingPattern: "*Artifacts*"
|
2019-06-13 12:10:50 +00:00
|
|
|
|
|
|
|
- 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:
|
2019-06-26 20:33:53 +00:00
|
|
|
displayName: Publish Assets
|
2019-06-13 12:10:50 +00:00
|
|
|
dependsOn: setupMaestroVars
|
|
|
|
variables:
|
|
|
|
- group: DotNet-Blob-Feed
|
2019-06-26 20:33:53 +00:00
|
|
|
- group: AzureDevOps-Artifact-Feeds-Pats
|
2019-06-13 12:10:50 +00:00
|
|
|
- name: BARBuildId
|
|
|
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ]
|
2019-06-26 20:33:53 +00:00
|
|
|
- name: IsStableBuild
|
|
|
|
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ]
|
2019-06-13 12:10:50 +00:00
|
|
|
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], 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
|
2019-06-26 20:33:53 +00:00
|
|
|
displayName: Add Assets Location
|
|
|
|
env:
|
|
|
|
AZURE_DEVOPS_EXT_PAT: $(dn-bot-dnceng-unviersal-packages-rw)
|
2019-06-13 12:10:50 +00:00
|
|
|
inputs:
|
|
|
|
filePath: eng\common\sdk-task.ps1
|
2019-06-26 20:33:53 +00:00
|
|
|
arguments: -task PublishArtifactsInManifest -restore -msbuildEngine dotnet
|
|
|
|
/p:ChannelId=$(PublicDevRelease_30_Channel_Id)
|
2019-07-27 12:35:24 +00:00
|
|
|
/p:ArtifactsCategory=$(_DotNetArtifactsCategory)
|
2019-06-26 20:33:53 +00:00
|
|
|
/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)'
|
2019-06-13 12:10:50 +00:00
|
|
|
/p:BARBuildId=$(BARBuildId)
|
2019-07-27 12:35:24 +00:00
|
|
|
/p:MaestroApiEndpoint='$(MaestroApiEndPoint)'
|
|
|
|
/p:BuildAssetRegistryToken='$(MaestroApiAccessToken)'
|
2019-06-13 12:10:50 +00:00
|
|
|
/p:ManifestsBasePath='$(Build.ArtifactStagingDirectory)/AssetManifests/'
|
|
|
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)/BlobArtifacts/'
|
|
|
|
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts/'
|
|
|
|
/p:Configuration=Release
|
|
|
|
|
2019-06-26 20:33:53 +00:00
|
|
|
- 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
|
|
|
|
|
2019-06-13 12:10:50 +00:00
|
|
|
|
|
|
|
- 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'], 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)
|
|
|
|
|
2019-07-27 12:35:24 +00:00
|
|
|
- template: ../darc-gather-drop.yml
|
|
|
|
parameters:
|
|
|
|
ChannelId: ${{ variables.PublicDevRelease_30_Channel_Id }}
|
2019-06-28 13:15:43 +00:00
|
|
|
|
|
|
|
- template: ../promote-build.yml
|
|
|
|
parameters:
|
|
|
|
ChannelId: ${{ variables.PublicDevRelease_30_Channel_Id }}
|