Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • C CI-CD Pipelines
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Open Subsurface Data Universe SoftwareOpen Subsurface Data Universe Software
  • Platform
  • CI-CD Pipelines
  • Merge requests
  • !21

Cache Maven Repository during AWS Test Execution

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged David Diederich requested to merge aws-cache-maven into master Jun 04, 2020
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 1

The aws-test job utilizes maven, but not via the .maven template. But, nobody likes downloading dependencies over and over and over. This introduces a simple cache of the .m2/repository; more or less copy-pasted from the maven.yml file.

For testing, note Job 10949 builds as normal, but ends with the lines:

 Creating cache default...
/builds/osdu/platform/system/search-service/.m2/repository: found 4941 matching files 
No URL provided, cache will be not uploaded to shared cache server. Cache will be stored only locally. 

A subsequent execution, Job 10950 runs without having to download any dependencies. Yay!

As the good runner said, the cache is stored locally on the machine that does the execution. So, if we have multiple different machines running this job (and we do), they will each have an independent cache. Not a problem, of course, just something to keep in mind if you're curious why you are getting dependency downloads in a particular execution.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: aws-cache-maven