0
我有一個小的dotnet核心應用程序,並希望在jenkins上構建它。 爲了做到這一點,我在build slave上安裝了dotnet core。構建服務器上的Dotnet恢復失敗
本地,我可以使用相同的命令successfuly(甚至在我的Mac)
dotnet restore --configfile .nuget/NuGet.Config
在恢復構建服務器失敗的一個包恢復。
Started by user jenkins
Building remotely on 2c3bff31e594 in workspace /root/workspace/Test
Cloning the remote Git repository
...
+ dotnet restore --configfile .nuget/NuGet.Config
Welcome to .NET Core!
---------------------
...
log : Installing System.Runtime 4.1.0-rc2-24027.
log : Installing System.Diagnostics.Tools 4.0.1-rc2-24027.
log : Installing System.Reflection.Extensions 4.0.1-rc2-24027.
...
log : Restoring packages for /root/workspace/Test/test/Test.DataAccess.Tests/project.json...
log : Failed to download package from 'https://api.nuget.org/v3-flatcontainer/remotion.linq/2.1.1/remotion.linq.2.1.1.nupkg'.
log : Response status code does not indicate success: 404 (Not Found).
這裏奇怪的是,如果我打的網址從日誌 「https://api.nuget.org/v3-flatcontainer/remotion.linq/2.1.1/remotion.linq.2.1.1.nupkg」鏈接,該包是他們的。