Circleci 2 need to access artifact

debugging
cci-20

#1

I have migrated to circleci 2 and my config look like this:

version: 2
jobs:
  build:
    docker:
      - image: circleci/android:api-25-alpha
    environment:
      JVM_OPTS: -Xmx3200m
    steps:
      - checkout
      - run:
          name: Create build
          command: ./gradlew assembleDebug --console=plain
      - store_artifacts:
          path: app/build/outputs
          destination: apk
  test:
    docker:
      - image: circleci/node:latest
    environment:
      TEST_ENVIRONMENT: sauce
    steps:
      - checkout
      - run:
          name: npm install
          command: npm install
      - run:
          name: Push to sauce
          command: **cd node_modules/repo-link && npm run sauce-push-android -- @${CIRCLE_ARTIFACTS}/app/build/outputs/apk/app-debug.apk**

workflows:
  version: 2
  build_and_test:
    jobs:
      - build
      - test:
          requires:
            - build
          filters:
            branches:
              only: chore/functional-test

Now I need to get artifacts apk file which I have created in build in test and run functional test. How can I get location for artifact location ?


#2

You need to use workspaces to share data between jobs instead of artifacts (which are only available for each job, if I understood it correctly).


#3

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