You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于配置Azure Pipeline构建Android APK并推送至AppCenter的技术问询

关于配置Azure Pipeline构建Android APK并推送至AppCenter的技术问询

大家好,我正在搭建Azure Pipeline来完成Android APK的构建,之后还要把构建产物推送到AppCenter。目前我已经写了一部分YAML流水线脚本,想请各位帮忙看看有没有需要调整的地方,或者有没有潜在的问题需要提前留意?

我的当前脚本如下:

variables:
- group: configurationAppCenterAppSlug
- group: configurationPipeline

parameters:
  - name: schemeName
    displayName: 'Choose environment:'
    type: string
    default: stageCasa
    values:
      - stageCasa
      - stageCz
      - stagePsk
      - stageSk
      - stageRo

trigger:
- casa-redesign

pool:
  vmImage: 'macos-latest'

steps:

- checkout: self
  displayName: 'Update repo files'
  fetchDepth: 1
  fetchTags: false
  lfs: false
  clean: false

- script: |
    echo "Checking for Java 11"
    if /usr/libexec/java_home -v 11 >/dev/null 2>&1; then
      echo "Java 11 found"
      JAVA_HOME=$(/usr/libexec/java_home -v 11)
      echo "Setting JAVA_HOME to $JAVA_HOME"
    else
      echo "Java 11 not found, installing via Homebrew"
      brew install openjdk@11
      brew link --force --overwrite openjdk@11
      JAVA_HOME=$(/usr/libex...

备注:内容来源于stack exchange,提问作者Kratos

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 11:19:34