'Concourse resource cache flushing
Sometimes when a concourse pipeline is getting build, it tries to use the previous version of resource, not the latest one. I could confirm this because the resource hash don't match. Please let me know a solution to flush the resource hash.
Solution 1:[1]
Concourse v7.4.0 (released August 2021) adds the command
fly clear-resource-cache -r <pipeline>/<resource>
which will do what you are looking for.
See:
- the documentation for clear-resource-cache.
- the release notes for v7.4.0
Solution 2:[2]
The only way to flush the resource cache is to restart all the workers, as this will clear your ephemeral disks.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Josh Zarrabi |