I am trying to create a workspace that I want to share between the build and test jobs.
build:
docker:
- image: circleci/node:7.10
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- run: mkdir -p /tmp/workspace
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: yarn install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: mv * /tmp/workspace
- persist_to_workspace:
root: /tmp
paths:
- workspace
test:
docker:
- image: ubuntu:bionic-20180710
steps:
- attach_workspace:
at: /tmp/workspace
- run: cd workspace
- run: ./build.sh -t
On the test job, it fails.
Downloading workspace layers
Error downloading workspace layer for job …: RequestError: send request failed caused by: Get …: x509: failed to load system roots and no roots provided
Any ideas?