Telegram notification from Jenkins

Posted on January 7, 2018

The following Groovy PostBuild script can be used to send build notification to Telegram via a Telegram bot account. Note, that this is just using the HTTP POST API, meaning that you can’t interact with Jenkins via Telegram.

The message will include Jacoco coverage information if the build script is placed after the Jacoco post build reporting.

Use the following, dropping in the appropriate values in the first few lines: