小编Usm*_*afi的帖子

How to locate apk file using bitbucket-pipelines?

I'm using BitBucket-pipelines for Android CI. I'm trying to export the artifact (generated apk) to the downloads section of the project.

My bitbucket-pipelines.yml is as follows, but it can't locate the apk file

image: openjdk:8

pipelines:
default:
- step:
    caches:
      - gradle
      - android-sdk

    script:
      # Download and unzip android sdk
      - wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
      - unzip -o -qq android-sdk.zip -d android-sdk

      # Define Android Home and add PATHs
      - export ANDROID_HOME="/opt/atlassian/pipelines/agent/build/android-sdk"
      - export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH"

      # Download packages.
      - …
Run Code Online (Sandbox Code Playgroud)

continuous-integration android bitbucket devops bitbucket-pipelines

4
推荐指数
1
解决办法
2439
查看次数