【问题标题】:Unable to publish builds from Azure pipelines to Appcenter无法将构建从 Azure 管道发布到 Appcenter
【发布时间】:2021-12-29 16:58:28
【问题描述】:

收到错误 - ##[error]"{"message":"未经授权。相关 ID:xxxxx","statusCode":401,"code":"Unauthorized"}"

- task: CopyFiles@2
  inputs:
    contents: '**/*.apk'
    targetFolder: '$(build.artifactStagingDirectory)'
- task: PublishBuildArtifacts@1
  inputs:
    pathToPublish: '$(build.artifactStagingDirectory)/app/build/outputs/'
    artifactName: 'apk-files-$(apk_suffix)'
    artifactType: 'container'

- task: AppCenterDistribute@3
  inputs:
    serverEndpoint: 'CICD'
    appSlug: 'OrgCICD/appname'
    appFile: '$(build.artifactStagingDirectory)/app/build/outputs/apk/appname/release/appname-release.apk '
    symbolsOption: 'Android'
    releaseNotesOption: 'input'
    releaseNotesInput: 'CI/CD Staging'
    destinationType: 'groups'
    distributionGroupId: 'XXX-xxx'

CICD 是服务连接的名称。

【问题讨论】:

    标签: azure-devops


    【解决方案1】:

    你这边的 App Center 服务连接怎么样?

    我是说 CICD。也许您需要验证这一点才能使其正常工作。

    【讨论】:

    • CICD 正在为单个项目工作,看起来它的 API 密钥不正确。同样的另一个问题是将多个风味构建上传到 appcenter。我们能否根据上传各自构建的风格使 appslug 和 appFile 部分动态化,现在它给出错误 - 无法归档 apk 文件
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-01-17
    • 1970-01-01
    • 1970-01-01
    • 2020-03-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多