Artifact Cache


Artifact Cache caches build dependencies on Develocity Edge nodes close to your CI infrastructure, so builds no longer download them over the WAN every time.

In ephemeral CI environments, agents are short-lived, so every new agent starts with an empty local dependency cache. Artifact Cache sits between your builds and external repositories (such as Maven Central or npm registries) or internal artifact managers (such as Artifactory). It serves cached dependencies from a nearby Edge node instead of downloading them again for every build.

To use Artifact Cache, your Develocity license must include the Artifact Cache entitlement.

For the complete reference and setup instructions, consult the Artifact Cache CLI User Manual.

How It Works

The Artifact Cache CLI runs on CI agents and communicates with Develocity Edge nodes through a restore-build-store cycle:

  1. Before the build starts, the CLI queries the nearest Edge node for a cached image of the job’s dependencies. It then downloads whatever the agent is missing locally.

  2. The build tool runs using the restored dependencies.

  3. After the build completes, the CLI identifies new or changed artifacts, uploads them to the Edge node, and updates the image for future builds.

The CLI uses Edge discovery to connect to the optimal Edge node based on the CI agent user’s configured location. You can also connect directly to a specific Edge node using the --dv-edge option.

Artifact Cache and Setup Cache share the same CLI and Edge infrastructure but target different aspects of build performance. Artifact Cache focuses on build dependencies, while Setup Cache targets the build initialization phase.

Key Administrative Tasks

For detailed step-by-step instructions, refer to the following sections in the Artifact Cache CLI User Manual:

Requirements

  • A Develocity license with the Artifact Cache entitlement enabled

  • At least one Develocity Edge node deployed near your CI infrastructure

  • Java 21 or later installed on CI agents

  • A Develocity access key with "Read and write Build Cache data" permission

For the supported tools and their minimum versions, see Artifact Cache supported tools.

For Develocity version compatibility and configuration, see the System Requirements page.

Technical Notes

  • Permissions: CI agent users require a Develocity access key with the "Read and write Build Cache data" permission.

  • Connectivity: CI agents must have network access to both the Develocity server (HTTP/1) and a Develocity Edge node (HTTP/2). Co-locate CI runners and Edge nodes in the same availability zone to minimize latency.

  • Error handling: The Artifact Cache CLI never fails a CI build due to cache-related errors. If an error occurs, the CLI logs it and exits with code 0, allowing the build to continue without caching.