Hi everyone, today we’re continuing our how-to series (last was How to make Confluence post to HipChat) for the productive (yes yes, a chat tool can be productive) and powerful software HipChat, this post will show you its integration with the continuous integration server Jenkins.
Today, CI should be a mandatory practice for each software development company in order to automate and industrialize the lifecycle of applications. The main purpose is to monitor the project’s “health” after every change (own code base, dependencies libraries, servers API, etc...). For more information about CI principles, I invite you to read its wikipedia page.
Jenkins is certainly the most popular of CI server/tool and of course, and you will have guessed it’s the CI server we use at TechSolCom. The main competition is Hudson (origin project for Jenkins and forked after a dispute with Oracle), Bamboo (from Atlassian!), TeamCity, CruiseControl or Travis CI. For a comparison of them, you can check this wikipedia page.
At TechSolCom, we use Jenkins every day and try to draw the maximum force with its multitude of plugins (over 600!) and thus one of them is the HipChat plugin. This plugin allows to setup build notifications to be sent to HipChat rooms. It’s another kind of build notifier that can complement existing mechanisms as email, a monitor view projected on open space TV and many others.
The advantage of being notified in a HipChat room comes from the idea (and strength) that a room can be associated to a specific software/application project. Notifications can therefore arrive quickly (by desktop message or by mobile notification message), partitioned (by project and its developers) and accessible (because they are persisted and easily searchable).
After having installed the plugin, the three following steps are:
1. Configure the plugin settings in the Jenkins administration:
2. Now, in the configuration page of build, a new part ‘HipChat Notifications’ is present. To activate notification for the build, enter the targeted room and check the below checkbox,
3. and finally, add a post-build action.
Congratulation! You are now ready to send build notification from Jenkins to HipChat, as the example below: