@@ -18,20 +18,18 @@ variables:
1818 value : .NETCoreValidation
1919 - group : DotNet-Roslyn-SDLValidation-Params
2020
21- # If the pipeline is running in dnceng:
2221 # To retrieve OptProf data we need to authenticate to the VS drop storage.
2322 # Get access token with $dn-bot-devdiv-drop-rw-code-rw and dn-bot-dnceng-build-rw-code-rw from DotNet-VSTS-Infra-Access
2423 # Get $dotnetfeed-storage-access-key-1 from DotNet-Blob-Feed
2524 # Get $microsoft-symbol-server-pat and $symweb-symbol-server-pat from DotNet-Symbol-Server-Pats
2625 # Get $AccessToken-dotnet-build-bot-public-repo from DotNet-Versions-Publish
27- - ${{ if eq(variables['System.TeamProject'], 'internal') }} :
28- - group : DotNet-Blob-Feed
29- - group : DotNet-Symbol-Server-Pats
30- - group : DotNet-Versions-Publish
31- - group : DotNet-VSTS-Infra-Access
32- - group : DotNet-DevDiv-Insertion-Workflow-Variables
33- - name : _DevDivDropAccessToken
34- value : $(dn-bot-devdiv-drop-rw-code-rw)
26+ - group : DotNet-Blob-Feed
27+ - group : DotNet-Symbol-Server-Pats
28+ - group : DotNet-Versions-Publish
29+ - group : DotNet-VSTS-Infra-Access
30+ - group : DotNet-DevDiv-Insertion-Workflow-Variables
31+ - name : _DevDivDropAccessToken
32+ value : $(dn-bot-devdiv-drop-rw-code-rw)
3533
3634stages :
3735- stage : build
@@ -47,11 +45,9 @@ stages:
4745 - job : OfficialBuild
4846 displayName : Official Build
4947 timeoutInMinutes : 360
50- # Conditionally set build pool so we can share this YAML when building with different pipeline
5148 pool :
52- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
53- name : NetCoreInternal-Pool
54- queue : BuildPool.Server.Amd64.VS2017
49+ name : NetCoreInternal-Pool
50+ queue : BuildPool.Server.Amd64.VS2017
5551
5652 steps :
5753 - powershell : Write-Host "##vso[task.setvariable variable=SourceBranchName]$('$(Build.SourceBranch)'.Substring('refs/heads/'.Length))"
@@ -77,8 +73,7 @@ stages:
7773 displayName : Merge main-vs-deps into source branch
7874 inputs :
7975 filePath : ' scripts\merge-vs-deps.ps1'
80- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
81- arguments : ' -accessToken $(dn-bot-dnceng-build-rw-code-rw)'
76+ arguments : ' -accessToken $(dn-bot-dnceng-build-rw-code-rw)'
8277 condition : and(succeeded(), eq(variables['SourceBranchName'], 'main'))
8378
8479 - powershell : Write-Host "##vso[task.setvariable variable=VisualStudio.DropName]Products/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranchName)/$(Build.BuildNumber)"
@@ -91,8 +86,7 @@ stages:
9186 # Authenticate with service connections to be able to publish packages to external nuget feeds.
9287 - task : NuGetAuthenticate@0
9388 inputs :
94- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
95- nuGetServiceConnections : azure-public/vs-impl, azure-public/vssdk, devdiv/engineering
89+ nuGetServiceConnections : azure-public/vs-impl, azure-public/vssdk, devdiv/engineering
9690
9791 # Needed because the build fails the NuGet Tools restore without it
9892 - task : UseDotNet@2
@@ -116,9 +110,7 @@ stages:
116110 inputs :
117111 signType : $(SignType)
118112 zipSources : false
119- # If running in dnceng, we need to use a feed different from default
120- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
121- feedSource : https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
113+ feedSource : https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
122114 condition : and(succeeded(), in(variables['SignType'], 'test', 'real'))
123115
124116 - task : PowerShell@2
@@ -227,9 +219,8 @@ stages:
227219 command : push
228220 packagesToPush : ' $(Build.SourcesDirectory)\artifacts\VSSetup\$(BuildConfiguration)\DevDivPackages\**\*.nupkg'
229221 allowPackageConflicts : true
230- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
231- nuGetFeedType : external
232- publishFeedCredentials : ' DevDiv - VS package feed'
222+ nuGetFeedType : external
223+ publishFeedCredentials : ' DevDiv - VS package feed'
233224 condition : succeeded()
234225
235226 # Publish an artifact that the RoslynInsertionTool is able to find by its name.
@@ -267,9 +258,8 @@ stages:
267258 publishUsingPipelines : true
268259 dependsOn :
269260 - OfficialBuild
270- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
271- pool :
272- vmImage : vs2017-win2016
261+ pool :
262+ vmImage : vs2017-win2016
273263
274264- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
275265 - template : eng\common\templates\post-build\post-build.yml
0 commit comments