Restore cache from another job

Hi everyone,

I am working on this repo : https://github.com/ltetrel/circleci-test/tree/test
I have one job “build” dedicated to the build, and two others for testing “test-tree” and “test-content” (requires “build”).
I want to use the cache mechanism to avoid reinstalling the libraries from “build” whenever I am doing “test-tree” or “test-content”.

I tried the following config https://github.com/ltetrel/circleci-test/blob/test/.circleci/config.yml, cache seem to save for “build” but cannot restore it for “test-tree” or “test-content”
Error computing cache key: template: cacheKey:1:33: executing "cacheKey" at <checksum "requiremen...>: error calling checksum: open /root/project/requirements.txt: no such file or directory

Thx,

1 Like

The directory doesn’t exist because you are missing the checkout step in the other jobs.

It was indeed the problem,

Thank you,

1 Like

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