Skip to content

Commit 64dc1fc

Browse files
Call SetupNuGetSources for installer jobs (#90759)
Co-authored-by: Matt Mitchell <mmitche@microsoft.com>
1 parent 38a1170 commit 64dc1fc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

eng/pipelines/installer/jobs/build-job.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,25 @@ jobs:
296296
- checkout: self
297297
clean: true
298298
fetchDepth: $(checkoutFetchDepth)
299+
300+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
301+
- ${{ if ne(parameters.osGroup, 'windows') }}:
302+
- task: Bash@3
303+
displayName: Setup Private Feeds Credentials
304+
inputs:
305+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
306+
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
307+
env:
308+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
309+
- ${{ else }}:
310+
- task: PowerShell@2
311+
displayName: Setup Private Feeds Credentials
312+
inputs:
313+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
314+
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
315+
env:
316+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
317+
299318
- ${{ if ne(parameters.liveRuntimeBuildConfig, '') }}:
300319
- template: /eng/pipelines/common/download-artifact-step.yml
301320
parameters:

0 commit comments

Comments
 (0)