Skip to content

Save caches only from the default branch and .x lines - #455

Merged
slachiewicz merged 1 commit into
maven-3.9.xfrom
agent/cache-save-policy-39x
Oct 24, 2026
Merged

slachiewicz merged 1 commit into
maven-3.9.xfrom
agent/cache-save-policy-39x

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

The IT workflow saved its caches from every push, including Dependabot and topic branches, and since v6 setup-java also cached each of the six JDKs it installs on three operating systems: 39 entries on one Dependabot branch on 2026-10-24. Builds now save only from pushes to the default branch and .x lines, restore read-only elsewhere, and do not cache JDKs.

Every push saved the Maven cache and, through setup-java 6's default, each
installed JDK into its own branch scope, where no other build reads it.
@slachiewicz slachiewicz added build Pull requests that change the build process maintenance labels Oct 24, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review October 24, 2026 20:56
@slachiewicz
slachiewicz merged commit c0c5cf1 into maven-3.9.x Oct 24, 2026
16 of 17 checks passed
@slachiewicz
slachiewicz deleted the agent/cache-save-policy-39x branch October 24, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Pull requests that change the build process maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant