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

Can I skip step if cache is exist?

stanislau.dubrouski
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!
April 22, 2020

is it possible to check cache is exist and skip fe npm ci step ?

1 comment

Anton Zakharov
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!
October 8, 2020

You can use bash conditions checks for key artifacts in the cache directory before initializing some operations inside step.

E.g. perform operations that creates a cache file if it's not exists:

pipelines:
default:
- step:
caches:
- statik
script:
- if [[ ! -f ~/statik_cache/statik ]]; then touch ~/statik_cache/statik ; fi
definitions:
caches:
statik: ~/statik_cache

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events