Skip to main content

Troubleshoot builds and deployments with AI

The Harness AI can analyze log files and correlate error messages with known issues. This feature enables developers to troubleshoot and resolve deployment failures quickly, saving them from sifting through millions of log lines. Harness AI also suggests fixes and predicts potential errors in the code even before the build is initiated. This feature is designed to work across Harness's CI and CD offerings.

Get started with Harness AI for CI

To enable Harness AI for CI in your Harness account:

  1. Go to Account Settings.
  2. Select Account Resources.
  3. Select the Harness AI tile
  4. Enable the Harness AI setting.

After enabling Harness AI, AI-driven error analysis and remediation become available when a step fails or when an empty stage (a stage with no steps) encounters a failure.

When viewing the logs for the failed step or stage, select the Harness AI dialog to review error analysis and troubleshooting suggestions.

An example of Harness AI dialog.

Step logs are available on the Build details page.

info

Visit the following Harness Legal pages for legal information about Harness AI: