Reputation: 33
I want a telegram message from jenkins whenever there is a new build. I tried integrating telegram bot with jenkins by referring the jenkins plugin documentation : https://wiki.jenkins.io/display/JENKINS/Telegram+Notification+Plugin But this did not work. Is there any other way of doing this?
Upvotes: 3
Views: 7757
Reputation: 947
You can just add step to execute shell script and send message via curl:
$ curl -s -X POST https://api.telegram.org/bot[TOKENID]/sendMessage -d chat_id=[ID] -d text="your message"
where [TOKENID]
is your token id, and [ID]
your chat id.
And your telegram-bot must started by user(or added to chat).
Upvotes: 11