Jenkins Integration for Test RCA¶
This guide describes how to use a Jenkins plugin to connect your CI for an application for intelligent test failure analysis.
Setup Jenkins Plugin¶
Install Instructions for CloudAEye Plugin¶
-
Install this plugin on your Jenkins server:
- From the Jenkins homepage navigate to
Manage Jenkins
- Navigate to
Manage Plugins
, - Change the tab to
Available
, - Search for
CloudAEye
, - Check the box next to install.
- From the Jenkins homepage navigate to
Configuring the Plugin¶
On CloudAEye :
1. Create an account: CloudAEye offers a free tier for individual developers. You may get started by signing up here. You can read more about the free-tier here
2. Navigate to Home > Test RCA > Setup.
3. Select Jenkins
from the list of available integrations.
4. Copy the Tenant ID
and Token
values from the step-by-step guide.
On Jenkins :
1. Goto "Manage Jenkins → System". Search for the CloudAEye configuration section
2. Fill in the Tenant ID
and Token
values copied from above steps.
3. Click Test Connection
. This would make a ping to the CloudAEye's webhook endpoint to test the connection.
Enable plugin for Free-style jobs¶
- From Dashboard, select the required free-style project.
- Goto Configure > Post Build Actions. Search for the name
Send build notifications to CloudAEye
. - Click check box to
Enable sending build notifications to CloudAEye
- Save your changes
Enable plugin for pipeline jobs¶
- From Dashboard, select the required pipeline project.
- Goto Pipeline Syntax > Snippet Generator
- In Sample Step drop down, select the option
sendNotificationsToCloudAEye: Send build notifications to CloudAEye
- Check the option to enable sending build notifications
- Click
Generate Pipeline Script
. - Open the
Jenkinsfile
script file in the select project repo. - Copy the snippet generated in step 5 and add it in the post section of the script
post { always { sendNotificationsToCloudAEye true } }
View Root Cause Analysis of Test Failures¶
View test failure analysis to understand the root cause and proposed fix for each test failures.
For any further queries or additional information, please explore our Support Page or contact our team directly at support@cloudaeye.com. docs/assets/images/test-rca/jenkins/AddAsPostBuild.png