Skip to content

Commit

Permalink
Call SetupNuGetSources for installer jobs (#90754)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmitche committed Aug 17, 2023
1 parent a9b1d3c commit e20cc4e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions eng/pipelines/installer/jobs/build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,25 @@ jobs:
- checkout: self
clean: true
fetchDepth: $(checkoutFetchDepth)

- ${{ if ne(variables['System.TeamProject'], 'public') }}:
- ${{ if ne(parameters.osGroup, 'windows') }}:
- task: Bash@3
displayName: Setup Private Feeds Credentials
inputs:
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
env:
Token: $(dn-bot-dnceng-artifact-feeds-rw)
- ${{ else }}:
- task: PowerShell@2
displayName: Setup Private Feeds Credentials
inputs:
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
env:
Token: $(dn-bot-dnceng-artifact-feeds-rw)

- ${{ if ne(parameters.liveRuntimeBuildConfig, '') }}:
- template: /eng/pipelines/common/download-artifact-step.yml
parameters:
Expand Down

0 comments on commit e20cc4e

Please sign in to comment.