0

我正在尝试配置将 NuGet 包发布到内部提要的 VSTS 构建。Puckage 已成功创建,但 NuGet Publisher 存在问题。当 NuGet 发布者尝试发布包时,出现错误:

Using credentials from config. UserName: VssSessionToken
Pushing PackageName_20170608-081053 to 'https://...visualstudio.com/_packaging/b5ae5df2-b73e-4af2-...-66df-4340-8e68-9d4be0071ba8/nuget/v2/'...
PUT https://...visualstudio.com/_packaging/b5ae5df2-b73e-4af2-...-66df-4340-8e68-9d4be0071ba8/nuget/v2/
System.InvalidOperationException: Failed to process request. 'Method Not Allowed'. 
The remote server returned an error: (405) Method Not Allowed.. ---> System.Net.WebException: The remote server returned an error: (405) Method Not Allowed.
...
Error: d:\a\_tasks\NuGetPublisher_333b11bd-d341-\0.2.34\node_modules\nuget-task-common\NuGet\3.3.0\NuGet.exe failed with return code: 1
Packages failed to publish

我已经检查了提要的权限,并将项目集合构建服务添加为贡献者。我也尝试过使用 NuGet 版本,但没有帮助。

4

1 回答 1

0

问题是我试图发布以发布视图。相反,我必须先将包推送到提要。

以下是详细信息: https ://github.com/Microsoft/vsts-tasks/issues/4493

于 2017-06-09T06:30:26.893 回答