【发布时间】:2016-08-25 06:11:26
【问题描述】:
我有一个小的 dotnet 核心应用程序,想在 jenkins 上构建它。 为了实现它,我在 build slave 上安装了 dotnet core。
在本地我可以使用相同的命令成功恢复(即使在我的 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).
这里奇怪的是,如果我点击 url 来自日志的“https://api.nuget.org/v3-flatcontainer/remotion.linq/2.1.1/remotion.linq.2.1.1.nupkg”链接,包是他们的。
【问题讨论】:
标签: c# jenkins asp.net-core .net-core