Use upload/download-artifact for CI inter-job repo sharing#2498
Merged
jbonofre merged 1 commit intoapache:mainfrom Apr 2, 2026
Merged
Use upload/download-artifact for CI inter-job repo sharing#2498jbonofre merged 1 commit intoapache:mainfrom
jbonofre merged 1 commit intoapache:mainfrom
Conversation
…haring The cache/save and cache/restore actions are subject to GitHub's 7-day cache eviction policy. When a test job is re-run after the cache expires, the Maven local repository is empty and SNAPSHOT artifacts like apache-karaf:tar.gz cannot be resolved, causing build failures. Switching to upload-artifact/download-artifact ties the Maven local repo to the workflow run itself, making test job re-runs reliable regardless of cache expiration.
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
actions/cache/saveandactions/cache/restorewithactions/upload-artifactandactions/download-artifactfor passing the Maven local repository between the build and test CI jobsapache-karaf:tar.gzSNAPSHOT artifact couldn't be resolved)retention-days: 1to keep storage usage minimalTest plan