Skip to content

Commit 92b73ff

Browse files
committed
Remove azdo org conditions from yml files
1 parent 58e91fc commit 92b73ff

2 files changed

Lines changed: 27 additions & 44 deletions

File tree

azure-pipelines-official.yml

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -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

3634
stages:
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
Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ variables:
2323
# To retrieve OptProf data we need to authenticate to the VS drop storage.
2424
# If the pipeline is running in DevDiv, the account has access to the VS drop storage.
2525
# Get $AccessToken-dotnet-build-bot-public-repo from DotNet-GitHub-Versions-Repo-Write
26-
- ${{ if eq(variables['System.TeamProject'], 'DevDiv') }}:
27-
- group: DotNet-GitHub-Versions-Repo-Write
28-
- name: _DevDivDropAccessToken
29-
value: $(System.AccessToken)
26+
- group: DotNet-GitHub-Versions-Repo-Write
27+
- name: _DevDivDropAccessToken
28+
value: $(System.AccessToken)
3029

3130
stages:
3231
- stage: build
@@ -39,12 +38,11 @@ stages:
3938
timeoutInMinutes: 360
4039
# Conditionally set build pool so we can share this YAML when building with different pipeline
4140
pool:
42-
${{ if eq(variables['System.TeamProject'], 'DevDiv') }}:
43-
name: VSEngSS-MicroBuild2017
44-
demands:
45-
- msbuild
46-
- visualstudio
47-
- DotNetFramework
41+
name: VSEngSS-MicroBuild2017
42+
demands:
43+
- msbuild
44+
- visualstudio
45+
- DotNetFramework
4846

4947
steps:
5048
- powershell: Write-Host "##vso[task.setvariable variable=SourceBranchName]$('$(Build.SourceBranch)'.Substring('refs/heads/'.Length))"
@@ -77,8 +75,7 @@ stages:
7775
# Authenticate with service connections to be able to publish packages to external nuget feeds.
7876
- task: NuGetAuthenticate@0
7977
inputs:
80-
${{ if eq(variables['System.TeamProject'], 'DevDiv') }}:
81-
nuGetServiceConnections: azure-public/vs-impl, azure-public/vssdk
78+
nuGetServiceConnections: azure-public/vs-impl, azure-public/vssdk
8279

8380
# Needed to restore the Microsoft.DevDiv.Optimization.Data.PowerShell package
8481
- task: NuGetCommand@2
@@ -94,9 +91,6 @@ stages:
9491
inputs:
9592
signType: $(SignType)
9693
zipSources: false
97-
# If running in dnceng, we need to use a feed different from default
98-
${{ if eq(variables['System.TeamProject'], 'internal') }}:
99-
feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
10094
condition: and(succeeded(), in(variables['SignType'], 'test', 'real'))
10195

10296
- task: PowerShell@2
@@ -183,9 +177,8 @@ stages:
183177
command: push
184178
packagesToPush: '$(Build.SourcesDirectory)\artifacts\VSSetup\$(BuildConfiguration)\DevDivPackages\**\*.nupkg'
185179
allowPackageConflicts: true
186-
${{ if eq(variables['System.TeamProject'], 'DevDiv') }}:
187-
feedsToUse: config
188-
publishVstsFeed: '97a41293-2972-4f48-8c0e-05493ae82010'
180+
feedsToUse: config
181+
publishVstsFeed: '97a41293-2972-4f48-8c0e-05493ae82010'
189182
condition: succeeded()
190183

191184
# Publish an artifact that the RoslynInsertionTool is able to find by its name.

0 commit comments

Comments
 (0)