我对位桶管道有以下脚本
我不确定如何优化它,我无法使缓存正常工作
image: uber/android-build-environment:latest
pipelines:
default:
- step:
name: Compiling Debug Build
script:
- echo y | android update sdk --filter "extra-android-m2repository" --no-ui -a
- mkdir "${ANDROID_HOME}/licenses" || true
- echo "8933bad161af4178b1185d1a37fbf41ea5269c55" > "${ANDROID_HOME}/licenses/android-sdk-license"
- echo "d56f5187479451eabf01fb78af6dfcb131a6481e" >> "${ANDROID_HOME}/licenses/android-sdk-license"
- unset ANDROID_NDK_HOME
- bash ./gradlew assembleDebug --stacktrace
branches:
master:
- step:
name: Compiling Release Build
script:
- echo y | android update sdk --filter "extra-android-m2repository" --no-ui -a
- mkdir "${ANDROID_HOME}/licenses" || true
- echo "8933bad161af4178b1185d1a37fbf41ea5269c55" > "${ANDROID_HOME}/licenses/android-sdk-license"
- echo "d56f5187479451eabf01fb78af6dfcb131a6481e" >> "${ANDROID_HOME}/licenses/android-sdk-license"
- unset ANDROID_NDK_HOME
- bash ./gradlew assembleRelease --stacktrace