Android - Circleci artifacts output build
Hi, I’m trying to get out (.apk) build on circle ci 2.0 on server side but currently I’m not able to create build on version 2.0 of circleci. I have tried this command
copy the build outputs to artifacts
- cp -r app/build/outputs $CIRCLE_ARTIFACTS
But its look like it will be work only for version 1.0 so I need actual command for version 2.0.
Here I have shown my config.yml file, Please reply as fast as possible.
version: 2
jobs:
build:
working_directory: ~/code
docker:
-
image: circleci/android:api-25-alpha
environment:
JVM_OPTS: -Xmx3200m
steps: -
checkout
-
restore_cache:
key: jars-{{ checksum “build.gradle” }}-{{ checksum “app/build.gradle” }} -
run:
name: Download Dependencies
command: ./gradlew androidDependencies -
save_cache:
paths: -
~/.gradle
key: jars-{{ checksum “build.gradle” }}-{{ checksum “app/build.gradle” }} -
run:
name: Run Tests
command: ./gradlew lint test -
store_artifacts:
path: app/build/reports
destination: reports -
store_test_results:
path: app/build/test-results