Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anxk/global-build-notification-plugin
This plugin adds the function to send every build event of Jenkins to HTTP Endpoint.
https://github.com/anxk/global-build-notification-plugin
jenkins plugin
Last synced: about 2 months ago
JSON representation
This plugin adds the function to send every build event of Jenkins to HTTP Endpoint.
- Host: GitHub
- URL: https://github.com/anxk/global-build-notification-plugin
- Owner: anxk
- License: mit
- Created: 2019-10-26T18:06:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T05:07:09.000Z (over 4 years ago)
- Last Synced: 2024-11-07T11:51:42.648Z (3 months ago)
- Topics: jenkins, plugin
- Language: Java
- Homepage:
- Size: 146 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Global Build Notification Plugin
[![Build Status](https://www.travis-ci.org/anxk/global-build-notification-plugin.svg?branch=master)](https://www.travis-ci.org/anxk/global-build-notification-plugin)
This plugin adds the function to send every build event(STARTED and COMPLETED) of Jenkins to HTTP Endpoint.
## Installation
Clone this repo on your disk, navigate into folder `global-build-notification-plugin` and run command `mvn verify`, when it completed, upload `target/global-build-notification.hpi` to the update center of Jenkins and install it.
Also you can download `global-build-notification.hpi` from [release page](https://github.com/anxk/global-build-notification-plugin/releases), then upload it to the update center of Jenkins.
## Configuration
Go to manage > configure > Global Build Notification Plugin, add a http endpoint by specifying its URL, Filter (regular expression to restrict the job by full name) and annotation, for example:
![]()
Configuration Example
If you configure the plugin just as the example above, when a build in Jenkins completed (or started), you will receive messages from the endpoint like this:
```json
{
"duration": 75,
"jobName": "test",
"result": "SUCCESS",
"eventId": "810e81f7-0a09-4d10-9130-134c6db95184",
"causes": "Started by user admin",
"eventType": "completed",
"parameters": {
"param1": "xxx",
"param2": "yyy"
},
"url": "http://localhost:9090/job/test/5/",
"timestamp": 1573581381138,
"annotation": {
"location": "east"
}
}
```