This plugin allows Jenkins to send notifications via telegram bot.
- To build a plugin, run
mvn install
. This will create the file ./target/telegram-notifications.hpi - Manually install plugin to your Jenkins
- Download telegram-notifications-*.hpi release here
- Manually install plugin to your Jenkins
- Go to <your_jenkins>/pluginManager/available
- Find and install Telegram Bot
- Find BotFather in Telegram (@BotFather)
- Send /newbot command
- Follow the instructions
- Open the Jenkins global config
- Paste your bot name and token to according textfields
- In telegram find your bot and send /start command
- Send /sub command
- Add a build step and/or a post build step
- Fill the message (you can use environment variables and simple Markdown)
telegramSend 'Hello World'
Or, to send the message to some specific chat/channel:
telegramSend(message: 'Hello World', chatId: 1234567890)