Harness CI Intelligence
Harness CI Intelligence leverages a suite of CI features to optimize your builds.
Harness Continuous Integration (CI) Intelligence features are designed to smartly speed up builds and boost efficiency.
Build Intelligence
Build Intelligence is part of the suite of intelligent features in Harness CI designed to improve build times. It saves time by reusing outputs from previous builds. Build Intelligence works by storing these outputs locally or remotely and retrieving them when inputs haven't changed. This process avoids the need to regenerate outputs, significantly speeding up the build process and enhancing efficiency.
Build Intelligence in Harness CI is currently available for Gradle, Bazel, and Maven (version 3.9+).
Test Intelligence
Testing is an important part of Continuous Integration. Testing safeguards the quality of your product before shipping. However, test cycles often involve many tests, and it can take a significant amount of time for the tests to run. Additionally, the tests that run might be irrelevant to the code changes that triggered the build.
Harness Test Intelligence (TI) helps your test cycle move faster without compromising quality. Harness TI speeds up builds by running only the unit tests that matter for the specific code changes made, instead of executing the entire test suite every time. It automatically identifies and selects the relevant tests, skipping the rest. You can also configure TI to split tests across multiple jobs and run them in parallel, further reducing test time.
Test Intelligence gives you full visibility into which tests were selected and why. This can help you identify negative trends and gain insights to improve test quality and coverage. Using TI doesn't require you to change your build and test processes.
To learn more about the Test Intelligence architecture, how it works, and how to enable it, go to Test Intelligence overview.
While Test Intelligence is only for unit tests, you can run a variety of tests in your CI pipelines.
Cache Intelligence
Modern continuous integration systems execute pipelines inside ephemeral environments that are provisioned solely for pipeline execution and are not reused from prior pipeline runs. As builds often require downloading and installing many library and software dependencies, caching these dependencies for quick retrieval at runtime can save a significant amount of time.
With Cache Intelligence, Harness automatically caches and restores software dependencies to speed up your builds - hassle free.
You can use Cache Intelligence with any build infrastructure.
When you use Cache Intelligence with Harness CI Cloud, the cache is stored in the Harness-managed environment. When running builds in self-managed infrastructures, configure default object storage (Azure Blob Storage, GCP Cloud Storage, AWS S3, or any S3-compatible storage) that Harness can use to seamlessly store and manage the cache.
Docker Layer Caching (DLC)
In modern CI systems, Docker images are frequently built in ephemeral environments, created solely for pipeline execution.
With Docker Layer Caching (DLC), Harness seamlessly caches Docker image layers between builds to significantly accelerate the time it takes to build Docker images.
You can use DLC with any build infrastructure.
When you use DLC with Harness CI Cloud, the cache is stored in the Harness-managed environment. When running builds in self-managed infrastructures, configure default object storage (Azure Blob Storage, GCP Cloud Storage, AWS S3, or any S3-compatible storage) that Harness can use to seamlessly store and manage the cache.
Comparing Cache Intelligence, Docker Layer Caching, and Build Intelligence
Docker Layer Caching (DLC)
Reuses previously built Docker image layers, building only what’s necessary.
Speeds up Docker image build and push steps
Docker images
Can be used with any build infrastructure; cache stored in Harness cloud environment or object storage (Azure Blob Storage, GCP Cloud Storage, AWS S3, or any S3-compatible storage).
Cache Intelligence
Caches software dependencies (e.g., plugins) downloaded at the start of the build in a specific directory.
Caches dependencies to save download time
Software dependencies
Automatically caches and restores dependencies; works with any build infrastructure; stored in Harness cloud or object storage (Azure Blob Storage, GCP Cloud Storage, AWS S3, or any S3-compatible storage).
Build Intelligence
Caches outputs of cacheable build tasks as identified by the build tool (e.g., Gradle tasks).
Speeds up overall build process by reusing task outputs
Build outputs
Available in Harness Cloud and Kubernetes infrastructure, with support for local runner and VM runner coming soon. Available for Gradle, Bazel, and Maven (version 3.9+).
Intelligence Savings
Harness Intelligence optimizes your build stages by reducing execution times and providing insights into where time savings are achieved. This section explains how the time savings are calculated and displayed, helping you understand the benefits of using Harness Intelligence features.
Below is a screenshot demonstrating the time savings for a Build stage using Cache Intelligence and Test Intelligence.

How is Build stage time saving calculated
Harness calculates time savings by comparing the duration of the Build stage before and after Harness intelligence time savings are observed. When you first run your pipeline with Harness Intelligence features, a full run is executed, creating a baseline duration for the Build stage without any smart optimizations.
When Build stages are optimized with Intelligence features and savings are observed, the savings are shown compared to the baseline. A baseline can also be updated in subsequent runs where intelligence features are enabled but a full run (non-optimized) is executed. For example, depending on the code change, Test Intelligence may choose to run all tests, generating a new baseline.
Last updated
Was this helpful?