Azure管道中的Azure工件提要IDidentifier

时间:2020-07-23 12:27:36

标签: azure-devops azure-pipelines azure-artifacts

当我尝试使用它的名称将nuget包推送到本地Artifact feed时,推送失败:

error: Unable to load the service index for source 
https://pkgs.dev.azure.com/companyname/_packaging/MyFeed/nuget/v3/index.json.
error:   Response status code does not indicate success: 404 (Not Found - The feed with ID 'MyFeed' doesn't exist.

我的配置是:

- task: DotNetCoreCLI@2
  displayName: 'Publish nuget'
  inputs:
    command: 'push'
    nuGetFeedType: 'internal'
    packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
    publishVstsFeed: 'MyFeed'

现在,如果我在编辑azure-pipelines.yaml时使用右侧提供的可视工具添加了该块,它将放置一些看起来像“ GUID / GUID”的标识符,并且使用该标识符实际上是可行的。所以我想知道管道或Feed是否缺少一些配置?

我检查了一下,并且Project和Project collection Build服务都具有对Feed的贡献者权利。

1 个答案:

答案 0 :(得分:0)

您可以尝试添加NuGet工具安装程序任务以使用5.6.0版的nuget.exe来查看其是否有效。

- task: NuGetToolInstaller@1
  displayName: 'Use NuGet 5.6.0'
  inputs:
    versionSpec: 5.6.0