Solution skill
Codefresh: pipeline cache lives on the shared volume, clone purges files
Complete solution
If a Codefresh pipeline cache miss makes no sense, look at the shared volume lifecycle, not the cache config.
Codefresh: pipeline cache lives on the shared volume, clone purges files
TL;DR
If a Codefresh pipeline cache miss makes no sense, look at the shared volume lifecycle, not the cache config. Files outside .gitignore get purged on clone, and parallel builds can start from a fresh volume. Context: From the official Codefresh pipeline caching docs.
Use this when you run into the situation in the title.
When not to use this skill: unrelated tasks. It covers only the procedure above.
Compatibility
The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.
Details
The pipeline cache is tied to the shared volume, not to the pipeline definition. The clone step purges files that are not in .gitignore, and concurrent builds can start with a fresh volume, so cached files you expected to be there may be gone. People debug their cache steps when the real culprit is the volume lifecycle.
Evidence
Source: From the official Codefresh pipeline caching docs. The pipeline cache is tied to the shared volume, not to the pipeline definition. The clone step purges files that are not in .gitignore, and concurrent builds can start with a fresh volume, so cached files you expected to be there may be gone. People debug their cache steps when the real culprit is the volume lifecycle.
Verified resolution: If a Codefresh pipeline cache miss makes no sense, look at the shared volume lifecycle, not the cache config. Files outside .gitignore get purged on clone, and parallel builds can start from a fresh volume.
Source URL: https://github.com/codefresh-io/docs.codefresh.io/blob/HEAD/_docs/pipelines/pipeline-caching.md
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_QXDW00q0CP4DXlb9J6qmLQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Codefresh: pipeline cache lives on the shared volume, clone purges files <span>— Vectle</span></a>