11parameters :
2- symbolPublishingAdditionalParameters : ' '
32 artifactsPublishingAdditionalParameters : ' '
43 publishInstallersAndChecksums : false
4+ symbolPublishingAdditionalParameters : ' '
5+ stageName : ' '
6+ channelName : ' '
7+ channelId : ' '
8+ transportFeed : ' '
9+ shippingFeed : ' '
10+ symbolsFeed : ' '
511
612stages :
7- - stage : NetCore_Release31_Publish
13+ - stage : ${{ parameters.stageName }}
814 dependsOn : validate
915 variables :
1016 - template : ../common-variables.yml
11- displayName : .NET Core 3.1 Release Publishing
17+ displayName : ${{ parameters.channelName }} Publishing
1218 jobs :
1319 - template : ../setup-maestro-vars.yml
1420
1521 - job :
1622 displayName : Symbol Publishing
1723 dependsOn : setupMaestroVars
18- condition : contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.PublicRelease_31_Channel_Id ))
24+ condition : contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', ${{ parameters.channelId }} ))
1925 variables :
2026 - group : DotNet-Symbol-Server-Pats
2127 pool :
@@ -33,6 +39,18 @@ stages:
3339 artifactName : ' PDBArtifacts'
3440 continueOnError : true
3541
42+ # This is necessary whenever we want to publish/restore to an AzDO private feed
43+ # Since sdk-task.ps1 tries to restore packages we need to do this authentication here
44+ # otherwise it'll complain about accessing a private feed.
45+ - task : NuGetAuthenticate@0
46+ displayName : ' Authenticate to AzDO Feeds'
47+
48+ - task : PowerShell@2
49+ displayName : Enable cross-org publishing
50+ inputs :
51+ filePath : eng\common\enable-cross-org-publishing.ps1
52+ arguments : -token $(dn-bot-dnceng-artifact-feeds-rw)
53+
3654 - task : PowerShell@2
3755 displayName : Publish
3856 inputs :
@@ -50,13 +68,11 @@ stages:
5068 displayName : Publish Assets
5169 dependsOn : setupMaestroVars
5270 variables :
53- - group : DotNet-Blob-Feed
54- - group : AzureDevOps-Artifact-Feeds-Pats
5571 - name : BARBuildId
5672 value : $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ]
5773 - name : IsStableBuild
5874 value : $[ dependencies.setupMaestroVars.outputs['setReleaseVars.IsStableBuild'] ]
59- condition : contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', variables.PublicRelease_31_Channel_Id ))
75+ condition : contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', ${{ parameters.channelId }} ))
6076 pool :
6177 vmImage : ' windows-2019'
6278 steps :
@@ -65,12 +81,14 @@ stages:
6581 inputs :
6682 buildType : current
6783 artifactName : PackageArtifacts
84+ continueOnError : true
6885
6986 - task : DownloadBuildArtifacts@0
7087 displayName : Download Blob Artifacts
7188 inputs :
7289 buildType : current
7390 artifactName : BlobArtifacts
91+ continueOnError : true
7492
7593 - task : DownloadBuildArtifacts@0
7694 displayName : Download Asset Manifests
@@ -117,14 +135,14 @@ stages:
117135 /p:ChecksumsTargetStaticFeed=$(ChecksumsBlobFeedUrl)
118136 /p:ChecksumsAzureAccountKey=$(dotnetclichecksums-storage-key)
119137 /p:PublishToAzureDevOpsNuGetFeeds=true
120- /p:AzureDevOpsStaticShippingFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1/nuget/v3/index.json '
138+ /p:AzureDevOpsStaticShippingFeed='${{ parameters.shippingFeed }} '
121139 /p:AzureDevOpsStaticShippingFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)'
122- /p:AzureDevOpsStaticTransportFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1-transport/nuget/v3/index.json '
140+ /p:AzureDevOpsStaticTransportFeed='${{ parameters.transportFeed }} '
123141 /p:AzureDevOpsStaticTransportFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)'
124- /p:AzureDevOpsStaticSymbolsFeed='https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1-symbols/nuget/v3/index.json '
142+ /p:AzureDevOpsStaticSymbolsFeed='${{ parameters.symbolsFeed }} '
125143 /p:AzureDevOpsStaticSymbolsFeedKey='$(dn-bot-dnceng-artifact-feeds-rw)'
126144 ${{ parameters.artifactsPublishingAdditionalParameters }}
127145
128146 - template : ../../steps/promote-build.yml
129147 parameters :
130- ChannelId : ${{ variables.PublicRelease_31_Channel_Id }}
148+ ChannelId : ${{ parameters.channelId }}
0 commit comments