Provides integration to send build level notifications to CloudAEye to perform RCA(Root Cause Analysis) over test failures.
-
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
On CloudAEye :
- 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
- Navigate to Home > Test RCA > Setup.
- Select
Jenkins
from the list of available integrations. - Copy the
Tenant ID
andToken
values from the step-by-step guide.
On Jenkins :
- Goto "Manage Jenkins → System". Search for the CloudAEye configuration section
- Fill in the
Tenant ID
andToken
values copied from above steps. - Click
Test Connection
. This would make a ping to the CloudAEye's webhook endpoint to test the connection.
- 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
- 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 } }
Install Maven and JDK.
$ mvn -version | grep -v home
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
Java version: 1.7.0_79, vendor: Oracle Corporation
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-65-generic", arch: "amd64", family: "unix"
Create an HPI file to install in Jenkins (HPI file will be in target/cloudaeye.hpi
).
mvn clean package