Skip to content

Commit 99f2ba5

Browse files
authored
Work around auth issues with new internal source changes (#56308)
For some reason, the new SetupNugetSources does not play well with aspnetcore. No known reason at this point. Workaround this by removing SetupNugetSources and replacing with commented-out forms of the new templates. When issues the new templates/scripts have been resolved, will re-enable.
1 parent 874aaf4 commit 99f2ba5

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

.azure/pipelines/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ extends:
706706
# Source build
707707
- template: /eng/common/templates-official/job/source-build.yml@self
708708
parameters:
709+
enableInternalSources: true
709710
platform:
710711
name: 'Managed'
711712
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8'

.azure/pipelines/jobs/default-build.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -419,25 +419,8 @@ jobs:
419419

420420
- ${{ parameters.beforeBuild }}
421421

422-
- ${{ if eq(parameters.agentOs, 'Windows') }}:
423-
- task: PowerShell@2
424-
displayName: Setup Private Feeds Credentials
425-
inputs:
426-
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
427-
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
428-
env:
429-
Token: $(dn-bot-dnceng-artifact-feeds-rw)
430-
- ${{ if ne(parameters.agentOs, 'Windows') }}:
431-
- task: Bash@3
432-
displayName: Setup Private Feeds Credentials
433-
inputs:
434-
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
435-
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
436-
env:
437-
Token: $(dn-bot-dnceng-artifact-feeds-rw)
438-
439-
# Call the NugetAuthenticate task to add creds for added feeds.
440-
- task: NuGetAuthenticate@1
422+
# - template: /eng/common/templates-official/steps/enable-internal-sources.yml@self
423+
# - template: /eng/common/templates-official/steps/enable-internal-runtimes.yml@self
441424

442425
# Add COMPlus_* environment variables to build steps.
443426
- ${{ if ne(parameters.steps, '')}}:

0 commit comments

Comments
 (0)