CI: Allow caching in failed builds
Description
Initial builds suck. It takes a lot of time (and commits) to finally get to a green build. Initial builds take more time because files aren't cached until the first green build shows up.
Proposal
Just like it's possible to specify artifacts:when = always
, it should be possible to specify cache:when = always
.
Links / references
Documentation blurb
Overview
What is it? cache:when
in gitlab-ci.yml
Why should someone use this feature? To save time on failed builds.
What is the underlying (business) problem? Productivity.
How do you use this feature? Add cache:when = always
to gitlab-ci.yml
Use cases
Save time on subsequent failed builds.
Feature checklist
Make sure these are completed before closing the issue, with a link to the relevant commit.
-
Feature assurance -
Documentation -
Added to features.yml