Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Proget ClearTextPassword Authentication error
-
Hello,
I'm trying to use a private proget nuget feed in a docker (linux) based build pipeline:
Nuget.config:
<?xml version="1.0" encoding="utf-8"?><configuration> <packageSources> <add key="Vertical" value="https://proget.something/nuget/VerticalNugets/" /> </packageSources> <activePackageSource> <add key="All" value="(Aggregate source)" /> </activePackageSource> <packageSourceCredentials> <Vertical> <add key="Username" value="Myusername" /> <add key="ClearTextPassword" value="somecleartextpw" /> </Vertical> </packageSourceCredentials></configuration>docker script:
FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build-env
WORKDIR /app
ARG progetpw
ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
ENV NUGET_VERSION 4.4.1copy csproj and restore as distinct layers
COPY *.csproj ./
RUN echo "$progetpw" | base64 --decode > nuget.config
run cat nuget.config
RUN dotnet restorecopy everything else and build
COPY . ./
RUN dotnet publish -c Release -o outThe nuget file seems correct, but when i do dotnet restore i get the following error:
Response status code does not indicate success: 504 (Gateway Time-out).
"FindPackagesByIdAsyncCore" wird für die Quelle "https://proget.something/nuget/VerticalNugets/FindPackagesById()Auth via Encrypted password in nuget works on windows but dotnet cli does not support encrypted passwords on linux and CleartextPasswords do not seem to work with proget.
What can i do?
BR Peter
-
The
504
error indicates that thedotnet
client on your linux server isn't able to connect to ProGet, or that there's some intermediate proxy's preventing the request. So, I would investigate the networking side of things.Note that the password setting (
CleartextPassword
vsEncryptedPassword
) doesn't matter, since they both arrive to ProGet as the same Basic authentication header.