问题描述
我目前正在使用Azure Pipelines来使用App Center分发应用程序。
构建并创建certificate.p12和proves配置文件工作正常,但是在App Center distribute任务中我得到了
Starting: App Center
==============================================================================
Task : App Center distribute
Description : distribute app builds to testers and users via Visual Studio App Center
Version : 3.173.0
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/app-center-distribute
==============================================================================
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
##[error]"{\"message\":\"Resource not found: /v0.1/apps/https://appcenter.ms/users/[username]/apps/[appname]/uploads/releases. Correlation ID: bbc...\",\"statusCode\":404,\"code\":\"Not Found\"}"
http response code: 404
Finishing: App Center
YAML AppCenterdistribute作业
- task: AppCenterdistribute@3
displayName: 'App Center'
inputs:
serverEndpoint: Test
appSlug: 'https://appcenter.ms/users/[username]/apps/TestApp'
appFile: '$(build.artifactstagingdirectory)/**/*.ipa'
#symbolsIncludeParentDirectory: false
releaseNotesInput: 'test 123'
#isSilent: false
这是我的连接配置。
解决方法
您可以尝试将appSlug
的{{1}}修改为https://appcenter.ms/users/[username]/apps/TestApp
。
根据以下文档:
https://docs.microsoft.com/en-us/appcenter/distribution/vsts-deploy
创建Azure DevOps与App之间的连接后 中心,Azure DevOps需要知道要分发的应用程序 签名生成。您可以通过转到 在App Center上进行项目,并根据
[username]/TestApp
。对于 例如,对于https://appcenter.ms/users/{username}/apps/{app_identifier}
是https://appcenter.ms/users/vigimm/apps/SkyTube
。
此外,App Center Distribute task中对自变量的描述指示: