【问题标题】:Azure artifact feed ididentifier in azure pipeline天蓝色管道中的 Azure 工件提要标识符
【发布时间】:2022-02-15 22:36:20
【问题描述】:

当我尝试使用其名称将 nuget 包推送到本地 Artifact 提要时,推送失败:

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”的标识符,并且使用这个确实有效。所以我想知道 Pipeline 或 Feed 是否缺少一些配置?

我检查了项目和项目集合构建服务都对提要具有贡献者权限。

【问题讨论】:

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


    【解决方案1】:

    供参考,

    publishVstsFeed 值应遵循以下模式:
    publishVstsFeed: '<projectName>/<feed>'

    https://github.com/microsoft/azure-pipelines-tasks/issues/11258#issuecomment-633009958

    【讨论】:

      猜你喜欢
      • 2022-09-28
      • 2020-09-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多