Closed netspark closed 6 years ago
Can you ensure the environment variable is set correctly? Try adding printenv
before dotnet-restore.
Sure, @natemcmaster. Here is the output with printenv
prepended:
docker-compose -f .\docker-compose.ci.build.yml up
Recreating lodgifyproperty_ci-build_1 ...
Recreating lodgifyproperty_ci-build_1 ... done
Attaching to lodgifyproperty_ci-build_1
ci-build_1 | NODE_VERSION=6.11.3
ci-build_1 | NuGetPackageSourceCredentials_lodgify=Username=MyUser;Password=MyPass
ci-build_1 | HOSTNAME=f91c81d5a72d
ci-build_1 | DOTNET_SDK_DOWNLOAD_SHA=1242E8B72911A868E4F6C5D1112A64AD094223FA146DF04058160D25FABD44E4D1C50D076F3655C91613D32BC43D0514D3BAC7C3D112C23A670B5DA3676076F8
ci-build_1 | NUGET_XMLDOC_MODE=skip
ci-build_1 | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ci-build_1 | PWD=/src
ci-build_1 | DOTNET_SDK_VERSION=2.0.2
ci-build_1 | ASPNETCORE_URLS=http://+:80
ci-build_1 | SHLVL=1
ci-build_1 | HOME=/root
ci-build_1 | DOTNET_SDK_DOWNLOAD_URL=https://dotnetcli.blob.core.windows.net/dotnet/Sdk/2.0.2/dotnet-sdk-2.0.2-linux-x64.tar.gz
ci-build_1 | ASPNETCORE_PKG_VERSION=2.0.0
ci-build_1 | _=/usr/bin/printenv
ci-build_1 | Restoring packages for /src/Lodgify.Property.API/Lodgify.Property.API.csproj...
ci-build_1 | Restoring packages for /src/Lodgify.Property.Domain/Lodgify.Property.Domain.csproj...
ci-build_1 | /usr/share/dotnet/sdk/2.0.2/NuGet.targets(102,5): error : Unable to load the service index for source http://nuget.svc.codebay.es/nuget. [/src/Lodgify.Property.sln]
ci-build_1 | /usr/share/dotnet/sdk/2.0.2/NuGet.targets(102,5): error : Response status code does not indicate success: 401 (Unauthorized). [/src/Lodgify.Property.sln]
lodgifyproperty_ci-build_1 exited with code 1
Hmm, I don't see anything wrong with the docker setup. This issue needs to move to https://github.com/NuGet/home. It looks like something in the NuGet client is not loading your credential correctly.
This issue needs to move to https://github.com/NuGet/home
Should I go there and create the issue? I am not very sure which versions of NuGet libraries SDK uses...
Yes, open the issue there. Telling them you are using dotnet 2.0.2 should be enough info for them to identify which version of NuGet has the bug.
@netspark Can you point me to the issue you created at https://github.com/NuGet/home?
Private NuGet feed credentials, provided in either nuget.config packageSourceCredentials section or in NuGetPackageSourceCredentials_feedName environment variable are ignored, however, the feed source is recognized.
Steps to reproduce the issue
services: ci-build: image: microsoft/aspnetcore-build:1.0-2.0 volumes:
<?xml version="1.0" encoding="utf-8"?>
Expected behavior
Actual behavior
Additional information
Reproduced inside microsoft/aspnetcore-build linux image. Runs ok(see expected behaviour) when building on windows host with VS 2017 Community 15.3.
Output of
dotnet --info
Output of
docker info