Prerequisites
The Jenkins controller must be reachable from CodeRabbit over public HTTPS. The controller URL must not contain embedded credentials and may include a reverse-proxy context path such as/jenkins. Local, private, link-local, and metadata-service addresses are rejected.
Required permissions: CodeRabbit needs a Jenkins username and API token with read access to jobs, builds, console output, and test reports. CodeRabbit reads existing Jenkins results and does not trigger builds.
Connect Jenkins
1
Open Connections
Open Integrations in the CodeRabbit app, and select Jenkins.
2
Enter the controller details
Enter the public HTTPS controller URL and, if needed, an optional job or folder path that narrows the build search.
3
Add read-only credentials
Enter the Jenkins username and API token with the required read access.
4
Test and save
Test the authenticated connection. After the test succeeds, save the connection.
How it works
- During PR Review, CodeRabbit checks every active Jenkins connection for builds marked
FAILUREorUNSTABLEwhose recorded Git revision exactly equals the pull-request head SHA. - CodeRabbit matches the Git pluginâs last-built revision or commit IDs in the build change set. It does not infer a match from a branch, pull-request number, or job name.
- Jenkins enrichment supports pull requests on GitHub, GitLab, and Azure DevOps. Bitbucket is not supported by this integration.
- Discovery is bounded to 50 jobs, four folder levels, the latest 10 builds per job, and five concurrent requests. An optional job path narrows the search; older, deeper, or broader results may not be discovered.
- Output is bounded to at most 120,000 bytes of console output and up to 100 failed or regressed JUnit test cases per match.
- Console text, test error details, and stack traces pass through the secret redactor. Truncated console output carries an explicit limit marker.
Whatâs next
CI/CD pipeline analysis
Learn how CodeRabbit uses pipeline failure output during pull request reviews.
Agent connections
Learn how workspace connections provide external context to CodeRabbit Agent.