Sharing workspace for scala project

workflow

#1

Hi,

I have the following config.yml where try to implement shared workspace for my scala project. But I am getting the this error The specified paths did not match any files in /home/circleci/hac. I dont know who solve this. Could anyone help me on this

config.yml
`
host: &host
working_directory: ~/hac
docker:
- image: circleci/openjdk:8-jdk
environment:
JVM_OPTS: -Xmx3200m

version: 2
jobs:
build:
<<: *host

steps:
  - checkout

  - run:
      name: Runing Shell Script
      command: bash tools/sample.sh

  - restore_cache:
      keys:
      - v1-dependencies-{{ checksum "pom.xml" }}

  - run: mvn clean install

  - save_cache:
      paths:
        - ~/.m2
      key: v1-dependencies-{{ checksum "pom.xml" }}

  - persist_to_workspace:
      root: ~/hac

test:
<<: *host

steps:
  - attach_workspace:
      at: ~/hac
  - run:
      name: Running Unit Test
      command: mvn test

workflows:
version: 2
build_and_test:
jobs:
- build
- test:
requires:
- build
`


#2

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