从哪里获取 Azure Pipeline AppCenterDistribute@3 任务 destinationStoreId?

Toi*_* db 1 yaml azure-devops azure-pipelines google-play-console visual-studio-app-center

我正在我们的 Azure DevOps 管道中创建一个自动分发到我们的 AppCenter 以自动发布到 Google Play 商店。

我们管道中到 AppCenter 组的自动分发工作正常,如下所示:

- task: AppCenterDistribute@3
  inputs:
    serverEndpoint: 'AppCenter'
    appSlug: 'mycompany/appname'
    appFile: '**/android/bin/nl.mycompany.appname.apk'
    symbolsOption: 'Android'
    releaseNotesOption: 'input'
    releaseNotesInput: 'some comment'
    destinationType: 'groups'
    distributionGroupId: '813c4695-5f9c-4b10-973e-7awdcsd6'
Run Code Online (Sandbox Code Playgroud)

但是我无法通过以下方式分发到商店(通过 AppCenter):

- task: AppCenterDistribute@3
  inputs:
    serverEndpoint: 'AppCenter'
    appSlug: 'mycompany/appname'
    appFile: '**/android/bin/nl.mycompany.appname.apk'
    symbolsOption: 'Android'
    releaseNotesOption: 'input'
    releaseNotesInput: 'some comment'
    destinationType: 'store'
    destinationStoreId: 'Alpha'
Run Code Online (Sandbox Code Playgroud)

这将返回:

错误:ID 为 Alpha 的分发商店不存在。

知道在哪里可以destinationStoreId在 AppCenter 或其他地方找到吗?

Sha*_*zyk 7

它记录在这里

使用 API 调用获取 Store 连接 ID;在文档的其他地方了解如何使用 App Center API

使用以下链接调用 API:https://openapi.appcenter.ms/#/distribute/stores_list使用 查询商店 ID。以下是 API 调用返回的结果示例。您将使用密钥 ID 的值将商店指定为目标。

[
  {"id":"ebb146bc-b0d7-4500-9791-fc02f191bff9",
  "name":"Alpha team",
  "type":"apple",
  "track":"testflight-external",
  "created_by":"5114c905-76db-49e5-8a47-58c34b33a38b",
  "service_connection_id":"2a85ad1e-b44e-d6fd-a85f-8daee62b54ed"},
  {"id":"10ba5942-1388-4b2a-869a-9de40d5c0cff",
  "name":"Production",
  "type":"apple",
  "track":"production",
  "created_by":"5114c905-76db-49e5-8a47-58c34b33a38b",
  "service_connection_id":"2a85ad1e-b44e-d6fd-a85f-8daee62b54ed"},
  {"id":"894dd821-9f16-44a3-b2a7-d513d226babb",
  "name":"iTunes Connect users",
  "type":"apple",
  "track":"testflight-internal",
  "created_by":"5114c905-76db-49e5-8a47-58c34b33a38b",
  "service_connection_id":"2a85ad1e-b44e-d6fd-a85f-8daee62b54ed"}
]
Run Code Online (Sandbox Code Playgroud)

还要检查那些 GitHub 问题:

https://github.com/microsoftdocs/vsts-docs/issues/5128

https://github.com/MicrosoftDocs/vsts-docs/issues/3997

https://github.com/microsoft/azure-pipelines-tasks/issues/10158