Multiple projects on same repository


#1

There is an android project in V1 directory. I want to run lint check and store artifacts using circle.yml file. below is my yml file for develop branch.

version: 2
    jobs:
      build_develop:
        working_directory: ~/code
        docker:
          - image: circleci/android:api-25-alpha
        environment:
          JVM_OPTS: -Xmx3200m
        steps:
          - checkout:
              path: ~/V1
          - restore_cache:
              key: jars-{{ checksum "V1/build.gradle" }}-{{ checksum  "V1/app/build.gradle" }}
          - run:
              name: Download Dependencies
              command: ./V1/gradlew androidDependencies
          - save_cache:
              paths:
                - ~/.gradle
              key: jars-{{ checksum "V1/build.gradle" }}-{{ checksum  "V1/app/build.gradle" }}
          - run:
              name: Run lint
              command: |
                ./gradlew lintDebug
          - store_artifacts:
              path: app/build/reports
              destination: reports/
          - run:
              name: Run build
              command: |
                ./gradlew assembleDebug
          - store_artifacts:
              path: app/build/outputs/apk
              destination: apks/

    workflows:
      version: 2

      build_app:
        jobs:
          - build_develop:
              filters:
                branches:
                  only:
                    - develop

But It gives error like below,

Restoring Catch:
Error computing cache key: template: cacheKey:1:8: executing “cacheKey” at <checksum "V1/build.g…>: error calling checksum: open /home/circleci/code/V1/build.gradle: no such file or directory

Download Dependencies:
#!/bin/bash -eo pipefail
./V1/gradlew androidDependencies
/bin/bash: ./V1/gradlew: No such file or directory
Exited with code 127

There is some mistake in setting working_directory: path and checkout: path:.


#2

Hey mate, have you fix it? I’m having the same issue. If you could help saying what you did to work would be much appreciate.

Cheers


#3

Hi, I’ve the same issue, any update here ?


#4

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.