Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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!

    Credentials problem from build server

    Scheduled Pinned Locked Moved Support
    progetnettfsmsbuild
    2 Posts 1 Posters 42 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Hi,
      I'm trying to get our build server to restore packages from proget during build. This is being run as the user SVC_TFS, which is a specific system account for uploading and downloading packages during auto build. I've granted the user Feeds_AddPackage, Feeds_DownloadPackage privileges in the proget admin panel (we are using AD integration, so this is a domain account).

      I've added those credentials to the nuget.config file, which looks like this:

      <?xml version="1.0" encoding="utf-8"?>
      <configuration>
        <packageSources>
          <add key="http://go.microsoft.com/fwlink/?LinkID=206669" value="http://go.microsoft.com/fwlink/?LinkID=206669" />
          <add key="https://www.nuget.org/api/v2/" value="https://www.nuget.org/api/v2/" />
          <add key="internal" value="http://the-proget-server:777/nuget/packages" />
        </packageSources>
        <disabledPackageSources />
        <packageSourceCredentials>
          <internal>
            <add key="Username" value="DOMAIN\SVC_TFS" />
            <add key="ClearTextPassword" value="Password" />
          </internal>
        </packageSourceCredentials>
      </configuration>
      

      However the msbuild restore command reports an error. It's executing this command:

      ""C:\Builds\4\Code\Our.Project\src\.nuget\NuGet.exe" install "C:\Builds\4\Code\Our.Project\src\Our.Project.Tests\packages.config" -source ""  -NonInteractive -RequireConsent -solutionDir "C:\Builds\4\Code\Our.Project\src\ "
      

      and outputting:

      Using credentials from config. UserName: DOMAIN\SVC_TFS
      Please provide credentials for: http://the-proget-server:777/nuget/packages
      

      Any ideas on what why it would be asking for credentials? Is there any way I can stop it doing that?

      Product: ProGet
      Version: 3.2.0

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        This error is coming from nuget.exe; depending on the version of nuget.exe you're using, AD / integrated authentication simply will not work.

        It's supposedly fixed in 2.8.2, but some users say it doesn't work in 2.8.3. It's pretty broken in 2.8.1 and 2.8.0. Although it sometimes works in 2.7. The 2.6's seem to be fine, for the most part.

        ProGet.exe, from the now-defunct client tools, of course will work fine, or a simple HTTP PUT operation.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation