You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+69-32Lines changed: 69 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,66 +2,84 @@
2
2
3
3
Provides integration to send build level notifications to [CloudAEye](https://www.cloudaeye.com/) to perform RCA(Root Cause Analysis) over test failures.
4
4
5
-
## Install Instructions for CloudAEye Plugin
5
+
## Install the Plugin
6
6
7
-
1. Install this plugin on your Jenkins server:
7
+
To install this plugin on your Jenkins server, follow the below steps:
8
8
9
-
1. From the Jenkins homepage navigate to `Manage Jenkins`
10
-
2. Navigate to `Manage Plugins`,
11
-
3. Change the tab to `Available`,
12
-
4. Search for `CloudAEye`,
13
-
5. Check the box next to install.
9
+
1. On Jenkins dashboard click on `Manage Jenkins` on left menu.
10
+
2. Under **System Configuration** select `Plugins`.
11
+
3. Click on `Available Plugins` option in left menu.
12
+
4. Search for `CloudAEye` and click the `Install` button next to the search box.
14
13
15
-
### Configuring the Plugin
14
+
##Configure the Plugin
16
15
17
-
*On CloudAEye :*
18
-
1. Create an account: CloudAEye offers a **free tier** for individual developers. You may get started by signing up [here](https://console.cloudaeye.com/signup). You can read more about the free-tier [here](https://docs.cloudaeye.com/free-tier.html)
19
-
2. Navigate to Home > Test RCA > Setup.
20
-
3. Select `Jenkins` from the list of available integrations.
16
+
### Step 1: Fetch plugin credentials from CloudAEye :
17
+
18
+
1. Login to your CloudAEye account (If you do not already have an account, you can create one by signing up [here](https://console.cloudaeye.com/signup)
19
+
> CloudAEye offers a **free tier** for individual developers. You can read more about the free-tier [here](https://docs.cloudaeye.com/free-tier.html)
20
+
2. Navigate to `Home > Test RCA > Setup`.
21
+
3. Select `Connect Jenkins` from the list of available integrations.
21
22
4. Copy the `Tenant ID` and `Token` values from the step-by-step guide.
22
23
23
24
![image][img-cloudaeye-setup]
24
25
![image][img-cloudaeye-creds]
25
26
26
-
*On Jenkins :*
27
-
1. Goto "Manage Jenkins → System". Search for the CloudAEye configuration section
28
-
2. Fill in the `Tenant ID` and `Token` values copied from above steps.
29
-
3. Click `Test Connection`. This would make a ping to the CloudAEye's webhook endpoint to test the connection.
27
+
### Step 2: Configure the plugin globally in Jenkins
28
+
29
+
1. On Jenkins dashboard click on `Manage Jenkins` on left menu.
30
+
2. Under **System Configuration** select `System`.
31
+
3. Search for the `CloudAEye Configuration` section
32
+
4. Fill in the `Tenant ID` and `Token` values copied from above steps.
33
+
5. Click `Test Connection`.
34
+
> This would ping the CloudAEye's webhook endpoint to test the connection. A success message indicates the plugin is configured successfully.
30
35
31
36
![image][img-global-configuration]
32
37
33
38
34
-
### Enable plugin for Free-style jobs
39
+
## Enable Plugin for Jenkins Jobs
40
+
41
+
### For Free-style Jobs:
35
42
36
-
1. From Dashboard, select the required free-style project.
37
-
2. Goto Configure > Post Build Actions. Search for the name `Send build notifications to CloudAEye`.
38
-
3. Click check box to `Enable sending build notifications to CloudAEye`
39
-
4. Save your changes
43
+
1. On Dashboard, select the required free-style project.
44
+
2. On the left menu select **Configure > Post Build Actions**.
45
+
3. Search for the name `Send build notifications to CloudAEye`.
46
+
4. Click check box to `Enable sending build notifications to CloudAEye`
47
+
5. Save your changes
40
48
41
49
![image][img-add-as-postbuild]
42
50
![image][img-enable-postbuild]
43
51
44
-
### Enable plugin for pipeline jobs
52
+
### For Pipeline Jobs:
45
53
46
-
1. From Dashboard, select the required pipeline project.
47
-
2. Goto Pipeline Syntax > Snippet Generator
48
-
3. In Sample Step drop down, select the option `sendNotificationsToCloudAEye: Send build notifications to CloudAEye`
49
-
4. Check the option to enable sending build notifications
50
-
5. Click `Generate Pipeline Script`.
51
-
6. Open the `Jenkinsfile` script file in the select project repo.
52
-
7. Copy the snippet generated in step 5 and add it in the post section of the script
54
+
1. On Dashboard, select the required pipeline project.
55
+
2. On left menu select **Pipeline Syntax > Snippet Generator**
56
+
3. In the **Sample Step** drop down, select the option `sendNotificationsToCloudAEye: Send build notifications to CloudAEye`
57
+
4. Click check box to `Enable sending build notifications to CloudAEye`
58
+
5. Click on `Generate Pipeline Script`.
59
+
6. Open the `Jenkinsfile` script file in the corresponding github project repo and copy the snippet generated in step 5 and add it in the `post section` of the script
OS name: "linux", version: "4.4.0-65-generic", arch: "amd64", family: "unix"
72
90
```
73
91
74
-
Create an HPI file to install in Jenkins (HPI file will be in
75
-
`target/cloudaeye.hpi`).
92
+
### Deployment:
76
93
94
+
After making changes to the plugin repo, follow the below steps to successfully deploy the changes to Jenkins
95
+
96
+
- Always work on a feature branch (DO NOT work and push changes directly from main branch).
97
+
98
+
- Run the below command to locally build and test your plugin.
77
99
```shell
78
100
mvn clean package
79
101
```
102
+
> This creates a HPI file that can be installed on your Jenkins server (HPI file will be in `target/cloudaeye.hpi`
103
+
104
+
- Fix lint issues (if any)
105
+
106
+
```shell
107
+
mvn spotless:apply
108
+
```
109
+
110
+
> This is important because Jenkins build fails if there are any lint issues
111
+
112
+
- Push the changes and create a PR to the `main` branch.
113
+
114
+
NOTE: Make sure to apply [appropriate labels](https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.yml) to the PR that falls into the [interesting category actions](https://github.com/jenkins-infra/interesting-category-action/blob/main/action.yaml#L13) to automatically trigger a release
115
+
116
+
- Once all `github checks pass`, merge the PR to deploy the changes to Jenkins
0 commit comments