从哪里获取 Azure Pipeline AppCenterDistribute@3 Task destinationStoreId?
Where to get Azure Pipeline AppCenterDistribute@3 Task destinationStoreId?
我正在我们的 Azure DevOps 管道中创建一个自动分发到我们的 AppCenter 以自动发布到 Google 游戏商店。
我们管道中到 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'
但我无法使用此功能分发到应用商店(通过 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'
这个returns:
Error: Distribution Store with id Alpha does not exist.
知道在 AppCenter 或其他地方可以找到 destinationStoreId
吗?
已记录 here:
使用 API 调用获取 Store 连接 ID;在文档的其他地方学习 how to use the App Center API。
使用以下 link 调用 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"}
]
还要检查那些 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
我正在我们的 Azure DevOps 管道中创建一个自动分发到我们的 AppCenter 以自动发布到 Google 游戏商店。
我们管道中到 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'
但我无法使用此功能分发到应用商店(通过 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'
这个returns:
Error: Distribution Store with id Alpha does not exist.
知道在 AppCenter 或其他地方可以找到 destinationStoreId
吗?
已记录 here:
使用 API 调用获取 Store 连接 ID;在文档的其他地方学习 how to use the App Center API。
使用以下 link 调用 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"}
]
还要检查那些 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