Sachin Desai
Sachin Desai

Reputation: 33

Integrating Telegram bot with jenkins

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

Answers (1)

Sergey
Sergey

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

Related Questions