Skip to content

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

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

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

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 JDK it installs. Builds now save only from pushes to the default branch and .x lines, restore read-only elsewhere, and do not cache JDKs. Same change as #454 on maven-3.10.x.

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 the build Pull requests that change the build process label Oct 24, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review October 24, 2026 20:56
@slachiewicz
slachiewicz merged commit ca24c20 into maven-4.x Oct 24, 2026
4 checks passed
@slachiewicz
slachiewicz deleted the agent/cache-save-policy-4x 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant