OctoPack Nuget错误

时间:2017-07-19 08:26:35

标签: octopus-deploy

我们刚刚开始Octopus Deploy并在OctoPack中安装了ASP.NET Web Application (.NET 4.6)。当我输入并运行此命令时:/p: RunOctoPack=true,一切都很好。但是,当我输入更多命令/p:OctoPackPublishPackageToHttp=http://blahblah时,它会开始抛出以下错误:

C:\Builds\11\Vocal Area VA\VA Octo\src\VA\DEV 1\Telrik\packages\OctoPack.3.6.1\build\OctoPack.targets (109): The command ""C:\Builds\11\Vocal Area VA\VA Octo\src\VA\DEV 1\Telrik\packages\OctoPack.3.6.1\build\nuget.exe" push "C:\Builds\11\Vocal Area VA\VA Octo\src\VA\DEV 1\Telrik\DSC.VA.WEB\obj\octopacked\DSC.VA.WEB.1.0.0.0.nupkg"  -Source http://octodeploy/nuget/packages " exited with code 1.

2 个答案:

答案 0 :(得分:0)

尝试通过NuGet.exe命令行工具手动推送包。

nuget.exe push -Source {NuGet package source URL} -ApiKey key {your_package}.nupkg

这有用吗?

答案 1 :(得分:0)

/ p:RunOctoPack = true / p:OctoPackPackageVersion = $ {Your_octoPackPackageVersion} / p:OctoPackPublishPackageToHttp = {Your_Adress} / p:OctoPackPublishApiKey = {Your_ApiKey},编码:“UTF-8”

你可以用它重构你的脚本吗?应该工作。