响应状态代码并不表示成功:403(禁止 - 用户)Azure Pipeline
C:\hostedtoolcache\windows\dotnet\sdk\3.1.416\NuGet.targets(128,5):
error :
Response status code does not indicate success: 403
(Forbidden - User '2016d1a0-0d43-42b0-8a96-7f6a9bxxxxxx' lacks permission to complete this action. You need to have 'ReadPackages'.
(DevOps Activity ID: ADACCF88-4190-491C-B690-E3330E3xxxxx)).
[D:\a\1\s\Notifications.Functions\Notifications.Application.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:08.96
##[error]Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1
C:\hostedtoolcache\windows\dotnet\sdk\3.1.416\NuGet.targets(128,5):
error :
Response status code does not indicate success: 403
(Forbidden - User '2016d1a0-0d43-42b0-8a96-7f6a9bxxxxxx' lacks permission to complete this action. You need to have 'ReadPackages'.
(DevOps Activity ID: ADACCF88-4190-491C-B690-E3330E3xxxxx)).
[D:\a\1\s\Notifications.Functions\Notifications.Application.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:08.96
##[error]Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果生成服务无权访问 Azure Artifacts Feed,则会出现此错误消息。要解决此问题,请执行以下操作:
[ProjectName] Build Service
(其中[ProjectName]
是包含管道的Azure DevOps项目的名称您正在尝试推送)并选择下拉列表中显示的相应组。现在,当您运行管道时,它将能够毫无问题地将 nuget 包推送到 Azure Artifacts 源。
This error message appears if the build service doesn't have permission to access your Azure Artifacts feed. To fix this:
[ProjectName] Build Service
(where[ProjectName]
is the name of the Azure DevOps project containing the pipeline you're trying to push from) and select the corresponding group that appears in the dropdown.Now when you run the pipeline, it will be able to push nuget packages to the Azure Artifacts feed without issue.
检查提要是否具有“构建服务”的“贡献者”权限,如果已由 Azure 添加,则通常是“协作者”。
Check feed have "Contributor" permission to "Build Service", usually it is "Collaborator" if it was already added by Azure.