Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Cache key is ignored on self-hosted env

Kristina Argirova
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 13, 2024

hi, community. Has anyone faced this issue?

I have two steps - one is running on the bitbucket and one - on self-hosted env. Both are using the same cache configuration. In the first case, the cache is downloaded with a key, in the second step - the key is ignored. 

 

Here is the cache configuration used in both cases:

 

caches:
node-modules-cache:
key:
files:
- package-lock.json
path: node_modules


The step on self-hosted env fails because it cannot load the cache with a key 

Cache "node-modules-cache: node_modules": Downloading Cache "node-modules-cache: node_modules": Not found

 

If I change the cache configuration to not use the key, then both steps pass successfully:

 

caches:
node-modules-cache:
path: node_modules

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events