【问题标题】:Teamcity Nuget Publish to Octopus Repository(built in) fails with 503 errorTeamcity Nuget 发布到 Octopus 存储库(内置)失败并出现 503 错误
【发布时间】:2019-01-25 10:43:51
【问题描述】:

我在 teamcity 上有一个带有 nuspec 文件的 AsP.net 网站。我基本上定义了两个构建步骤。 1. Nuget 包 2. Nuget 发布。 成功创建了 nuget 包,但尝试创建时出现 503 错误 运行 Nuget 发布步骤。

这里是 teamcity 发布设置

返回的错误如下: [push] An error was encountered when fetching 'PUT https://myoctopusdeployrepo/nuget/packages/'. The request will now be retried. [10:08:14][push] An error occurred while sending the request. [10:08:14][push] The remote server returned an error: (503) Server Unavailable.

我知道推送到内置 octopus 存储库至少适用于使用 .csproj 和 octopack 的 asp.net csharp 项目,但是在尝试推送从 nuspec 文件生成的包时出现此错误。

也许我在设置中遗漏了一些东西?

【问题讨论】:

    标签: teamcity octopus-deploy octopus team-city-10.0


    【解决方案1】:

    在研究和尝试某些其他构建步骤时,我遇到了“Octopus Deploy:Push Packages”构建步骤(Teamcity 2018.2)。这将运行octo.exe,它需要安装在构建代理(Octopus 部署命令行工具)上。该插件可在 octopus deploy 网站上找到。 日志中列出的命令如下 octo.exe push --server http://octopusdeployserver --apikey SECRET --package <package url>

    我希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 2015-07-12
      • 2014-04-07
      • 1970-01-01
      • 1970-01-01
      • 2019-03-25
      • 2021-06-12
      • 2014-09-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多