TeamCity Nuget install build step not working with multiple sources, one of them TC's private NuGet feed

后端 未结 3 1030
深忆病人
深忆病人 2021-02-08 21:55

I receive the following error in NuGet Install build step when setting sources to TeamCity\'s NuGet server:

Step 1/4: NuGet install (NuGet Installer) (3s)

[15:1         


        
3条回答
  •  盖世英雄少女心
    2021-02-08 22:23

    This appears to be a known issue for TeamCity. The workaround suggests adding the package source via the command line client and then updating those sources with the authorization credentials:

    nuget sources add -name [name] -source [feedUrl]
    nuget sources update -Name [name] -User [username] -pass [password]
    

    It's my understanding that Nuget will cache those credentials for future requests. I don't know how often that cache is cleared; you may need to run that nget sources update right before you kick off your build to ensure that the cache is coherent.

提交回复
热议问题