2019-06-26 20:33:53 +00:00
|
|
|
parameters:
|
|
|
|
enableSymbolValidation: true
|
2019-08-17 12:31:30 +00:00
|
|
|
symbolPublishingAdditionalParameters: ''
|
|
|
|
artifactsPublishingAdditionalParameters: ''
|
2019-06-26 20:33:53 +00:00
|
|
|
|
|
|
|
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
|
2019-08-02 12:38:38 +00:00
|
|
|
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.InternalServicing_30_Channel_Id))
|
2019-06-26 20:33:53 +00:00
|
|
|
variables:
|
|
|
|
- group: DotNet-Symbol-Server-Pats
|
|
|
|
pool:
|
|
|
|
vmImage: 'windows-2019'
|
|
|
|
steps:
|
|
|
|
- task: DownloadBuildArtifacts@0
|
2019-08-17 12:31:30 +00:00
|
|
|
displayName: Download Blob Artifacts
|
|
|
|
inputs:
|
|
|
|
artifactName: 'BlobArtifacts'
|
|
|
|
continueOnError: true
|
|
|
|
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
|
|
displayName: Download PDB Artifacts
|
2019-06-26 20:33:53 +00:00
|
|
|
inputs:
|
2019-08-17 12:31:30 +00:00
|
|
|
artifactName: 'PDBArtifacts'
|
|
|
|
continueOnError: true
|
2019-06-26 20:33:53 +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/'
|
2019-08-17 12:31:30 +00:00
|
|
|
/p:SymbolPublishingExclusionsFile='$(Build.SourcesDirectory)/eng/SymbolPublishingExclusionsFile.txt'
|
2019-06-26 20:33:53 +00:00
|
|
|
/p:Configuration=Release
|
2019-08-17 12:31:30 +00:00
|
|
|
${{ parameters.symbolPublishingAdditionalParameters }}
|
2019-06-26 20:33:53 +00:00
|
|
|
|
2019-06-28 13:15:43 +00:00
|
|
|
- job: publish_assets
|
2019-06-26 20:33:53 +00:00
|
|
|
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'] ]
|
2019-08-02 12:38:38 +00:00
|
|
|
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.InternalServicing_30_Channel_Id))
|
2019-06-26 20:33:53 +00:00
|
|
|
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)
|
2019-07-11 12:25:27 +00:00
|
|
|
/p:AzureStorageAccountName=$(ProxyBackedFeedsAccountName)
|
|
|
|
/p:AzureStorageAccountKey=$(dotnetfeed-storage-access-key-1)
|
|
|
|
/p:AzureDevOpsFeedsBaseUrl=$(dotnetfeed-internal-private-feed-url)
|
2019-07-19 12:39:46 +00:00
|
|
|
/p:StaticInternalFeed=$(dotnetfeed-internal-nonstable-feed-url)
|
2019-06-26 20:33:53 +00:00
|
|
|
/p:NugetPath=$(Agent.BuildDirectory)\Nuget\NuGet.exe
|
|
|
|
/p:BARBuildId=$(BARBuildId)
|
2019-07-27 12:35:24 +00:00
|
|
|
/p:MaestroApiEndpoint='$(MaestroApiEndPoint)'
|
|
|
|
/p:BuildAssetRegistryToken='$(MaestroApiAccessToken)'
|
2019-06-26 20:33:53 +00:00
|
|
|
/p:ManifestsBasePath='$(Build.ArtifactStagingDirectory)/AssetManifests/'
|
|
|
|
/p:BlobBasePath='$(Build.ArtifactStagingDirectory)\BlobArtifacts'
|
|
|
|
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)\PackageArtifacts'
|
|
|
|
/p:Configuration=Release
|
2019-08-17 12:31:30 +00:00
|
|
|
${{ parameters.artifactsPublishingAdditionalParameters }}
|
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-28 13:15:43 +00:00
|
|
|
- template: ../trigger-subscription.yml
|
|
|
|
parameters:
|
|
|
|
ChannelId: ${{ variables.InternalServicing_30_Channel_Id }}
|
|
|
|
|
2019-06-26 20:33:53 +00:00
|
|
|
- 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
|
2019-08-02 12:38:38 +00:00
|
|
|
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.InternalServicing_30_Channel_Id))
|
2019-06-26 20:33:53 +00:00
|
|
|
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:
|
2019-07-11 12:25:27 +00:00
|
|
|
ChannelId: ${{ variables.InternalServicing_30_Channel_Id }}
|