Get Free Audit

BelVG’s Lifehack: How to Notify of Deployment Status via Telegram

Nov 27, 2017

1149 Siaržuk Piatroŭski

BelVG’s Lifehack: How to Notify of Deployment Status via Telegram

When developing the project, we prefer using messengers to simplify communication between team members. Which one do we use on a daily basis? This is Telegram which is considered to be the safest and most user-friendly messenger. It’s private enough, as all messages are encrypted, and compatible with all platforms. Besides, there’s a flexible API for creating bots that factored our decision to choose Telegram.

In fact, the most projects we deal with are connected with Magento 2 (See also: Client’s Story: Shiekh.com Migration to Magento 2). Since the Magento platform has its specific features, our process has the following logic:

  • A git repository including code is placed on bitbucket.
  • Build server is working on bamboo (code building, testing, DI compiling*).
  • It’s deploying via AWS CodeDeploy where the release is sent by build server.

As you can see, we generally use Atlassian software, but Hipchat developed by the same company seems a mediocre technology (not only we are of this opinion, as Atlassian suggests buying its new product Stride), that’s why we decided not to apply it. Moreover, a new idea about deployment status notification comes to us. Every time when the deployment status is changed (“start of deployment”, “in progress”, “successfully completed”, “failed”), team members are notified of it via Telegram.

BelVG’s Lifehack How to Notify of Deployment Status via Telegram_1

Actually, on GitHub, there’s a project under the scope of which a bot sending notification is developed. But the drawback is that it works for Bamboo – build. After reviewing documents, we added a phrase about deployment which hasn’t been used before (TelegramNotificationTransport.java). In order to comply the plugin, you need to install JDK and Atlassian SDK. If there are some issues when installing, one can use the step-by-step guide on README.MD.

Vlad Yunusov
Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Vlad

BelVG’s Lifehack How to Notify of Deployment Status via Telegram_2

BelVG’s Lifehack How to Notify of Deployment Status via Telegram_3

All in all, the idea has been implemented successfully and now works properly.

The technologies mentioned above are following:

#bamboo
#telegram
#java
#atlassian

*If you get interested in the project and want to dive deep into details, ask our developer Siaržuk Piatroŭski for help. He will be happy to assist you.

Vlad Yunusov
Partner With Us Looking for a partner that will help you to grow your business? We are the right company to develop your webstore. Feel free to get in touch with us. We will be happy to discuss your business opportunities and provide you with a Free Quote. Talk to Vlad
Tags:

Post a new comment

BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *