Skip to content

Commit

Permalink
Work around auth issues with new internal source changes (#56308)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mmitche authored Jun 19, 2024
1 parent 874aaf4 commit 99f2ba5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
1 change: 1 addition & 0 deletions .azure/pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 706,7 @@ extends:
# Source build
- template: /eng/common/templates-official/job/source-build.yml@self
parameters:
enableInternalSources: true
platform:
name: 'Managed'
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8'
Expand Down
21 changes: 2 additions & 19 deletions .azure/pipelines/jobs/default-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -419,25 419,8 @@ jobs:

- ${{ parameters.beforeBuild }}

- ${{ if eq(parameters.agentOs, 'Windows') }}:
- 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.agentOs, '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)

# Call the NugetAuthenticate task to add creds for added feeds.
- task: NuGetAuthenticate@1
# - template: /eng/common/templates-official/steps/enable-internal-sources.yml@self
# - template: /eng/common/templates-official/steps/enable-internal-runtimes.yml@self

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

0 comments on commit 99f2ba5

Please sign in to comment.