Viv*_*Dev 2 azure-devops azure-devops-artifacts
我正在运行 Azure DevOps 管道,但收到以下错误。
error: Unable to load the service index for source https://pkgs.dev.azure.com/companyName/_packaging/12345678-1234-1234-1234-1234567890ab/nuget/v3/index.json.
error: Response status code does not indicate success: 403 (Forbidden - User '12345678-1234-1234-1234-1234567890ab' lacks permission to complete this action. You need to have 'ReadPackages'. (DevOps Activity ID: 12345678-1234-1234-1234-1234567890ab)).
Run Code Online (Sandbox Code Playgroud)
我从 yaml 如下所示的任务中收到错误。
steps:
- task: DotNetCoreCLI@2
displayName: 'Push the created package to Nuget feed. '
inputs:
command: push
publishVstsFeed: '12345678-1234-1234-1234-1234567890ab'
versioningScheme: byPrereleaseNumber
Run Code Online (Sandbox Code Playgroud)
有什么想法要做什么吗?
Azure DevOps - 无法加载源的服务索引
您似乎尚未验证您的私人 Feed,请尝试添加任务NuGetAuthenticate
- task: NuGetAuthenticate@0
displayName: 'NuGet Authenticate'
inputs:
nuGetServiceConnections: TestNuGet
Run Code Online (Sandbox Code Playgroud)
并为私有 feed 创建服务连接:
| 归档时间: |
|
| 查看次数: |
8274 次 |
| 最近记录: |