Regex for caching subdirectories in a multimodule project
Summary
Is it possible to use a regex to cache all subdirectories matching a certain name in a job?
Steps to reproduce
I've been trying with a multimodule maven project with a file structure:
- root/
----moduleA/
--------target/
------------artifacts...
----moduleB/
--------target/
------------artifacts...
----moduleC/
--------target/
------------artifacts...
Ideally I'd like to be able to specify a cache string such as **/target/**
so that all submodule target directories are cached between build stages, but this doesn't seem to work
Expected behavior
Specifying a regex allows for mutlimodule artifacts to be passed between build stages.