[将Android应用分发到AzureDevops管道上的AppCenter的状态代码405

问题描述 投票:1回答:1

嗨!

我尝试使用管道分发Android应用程序时遇到问题。我有一个简单的分发任务,但总是返回405错误

这是我的任务:

- task: AppCenterDistribute@3
  inputs:
    serverEndpoint: 'AppCenterConnection'
    appSlug: '$(APPCENTER_ANDROID_DISTRIBUTION_SLUG)'
    appFile: '**/*.apk'
    symbolsOption: 'Android'
    releaseNotesOption: 'input'
    releaseNotesInput: 'Build $(Build.BuildNumber). Development version'
    destinationType: 'groups'
    distributionGroupId: '$(APPCENTER_ANDROID_DISTRIBUTION_GROUP)'

我也尝试发布,但我有同样的错误。

发布任务:Release

响应:Response

所有变量均已定义,生成的apk正常运行。如果我下载工件并在AppCenter上手动上传,则一切正常。但是该任务无效。

我的appcenter网址:https://appcenter.ms/users/mbarrera-plainconcepts/apps/FirstDays.Android

变量:Variables

任何想法?

先谢谢您!!

xamarin.forms azure-devops azure-pipelines visual-studio-app-center visual-studio-app-center-distribute
1个回答
0
投票
    This configuration worked for me.

My Version:
- task: AppCenterDistribute@3
inputs:
serverEndpoint: 'myAPPcenter'
appSlug: 'ORG/application'
appFile: '$(build.artifactstagingdirectory)/*.apk'
symbolsOption: 'Android'
releaseNotesOption: 'file'
releaseNotesFile: '$(Build.SourcesDirectory)/CHANGELOG.md'
destinationType: 'groups'
isSilent: false
© www.soinside.com 2019 - 2024. All rights reserved.