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:
- Navigation 1.0 (legacy)
- Navigation 2.0 (New)
- Go to Account Settings.
- Select Account Resources.
- Select the Harness AI tile
- Enable the Harness AI setting.
- Go to Account Settings.
- Select Default Settings.
- Expand the Harness AI section.
- Enable the Harness AI setting.
- Select Save.
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.
Step logs are available on the Build details page.
Visit the following Harness Legal pages for legal information about Harness AI: