This is a plugin to enable build notifications through Pushover, Telegram, Slack or even Boteco.
Java 8 required (doesn't work with Java 11).
Set JAVA_HOME and build with maven (optionally add -Dmaven.test.skip=true
to skip tests, seems they doesn't work now).
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
mvn -Dmaven.test.skip=true package
Upload the target/build-notifications.hpi
package to your Jenkins instance.
There are global and specific options:
Global options should be configured in Jenkins System Configuration. You'll need to set your api tokens there.
There are per-job configurations. You need to add a post-build step (there is a separated step for each notification service) and configure the target to receive notifications.
Notifications will include:
- The project's name
- The build number
- The build result
- The build's changes
- The build link
If you are receiving notifications through Pushover, the notification will be sent with high priority in case of a fail build, low priority in case of a success build and normal priority for the other cases.
Note that Telegram doesn't have a way to set priority for messages (and is understandable because Telegram is a chat platform and not a notification platform like Pushover).
Open an issue, spread the project, use it, fork it...
To file issues, use official Jenkins Jira and the component build-notifications-plugin
.