What does cache contain?
List of elements that are currently cached:
- Repository files, dependencies and artifacts (cached within the pipeline filesystem)
- Docker images in which build actions are run (no need to build the environment from scratch every time)
- Docker images used in the Run Image action
- Docker layers built with the Build Image action
You can also enable cache for services and databases attached to build actions or an extra cache
Filesystem cache
Each pipeline has its own filesystem. On the first pipeline run, the repository is cloned to the filesystem.
Build action cache
Builds, tests, and other commands defined in the build action are executed in the context of the filesystem containing the repository. This is the primary cache of the pipeline.
Docker cache
All layers created in Docker-building actions are cached. During subsequent builds, Buddy adds only the layers that have not been built in the previous step.
Cache maintenance
Sometimes you may want to clear the cache – for example, if you need to regenerate the artifacts. In such case, you can either clear the cache manually, or select an option which will do that automatically before every execution.