Can I skip step if cache is exist?

stanislau.dubrouski April 22, 2020

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

1 comment

Anton Zakharov 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