Skip to content

Commit dde1417

Browse files
committed
Call NuGetAuthenticate after SetupNuGetSources
The new version of the powershell script will not place the creds in the nuget.config file, instead it will use standard environment variables. Update the YAML file to use NuGetAuthenticate to avoid a build break that may happen if the credential provider is not available.
1 parent 47efe46 commit dde1417

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

eng/pipeline-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ jobs:
166166
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
167167
env:
168168
Token: $(dn-bot-dnceng-artifact-feeds-rw)
169+
- task: NuGetAuthenticate@1
169170

170171
# Use utility script to run script command dependent on agent OS.
171172
- script: eng\scripts\cibuild.cmd

eng/pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ jobs:
147147
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
148148
env:
149149
Token: $(dn-bot-dnceng-artifact-feeds-rw)
150+
- task: NuGetAuthenticate@1
150151
# Use utility script to run script command dependent on agent OS
151152
- script: eng\scripts\cibuild.cmd -configuration $(_BuildConfig) -prepareMachine $(_PublishArgs) $(_SignArgs) $(_OfficialBuildIdArgs) $(_PlatformArgs) $(_InternalRuntimeDownloadArgs)
152153
displayName: Windows Build / Publish

eng/wpfautomatedtests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ jobs:
150150
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
151151
env:
152152
Token: $(dn-bot-dnceng-artifact-feeds-rw)
153+
- task: NuGetAuthenticate@1
153154

154155
# Use utility script to run script command dependent on agent OS.
155156
- script: eng\common\cibuild.cmd

0 commit comments

Comments
 (0)