Thursday, August 18, 2011

Continuous integration notification, the other way.

My team use Hudson for continuous integration it used to send mail to whoever commit.
Recently our handsome sysadmin decided that this is an abuse of the system so this option was blocked.

As a result i noticed from time to time that the build was broken for some time and i didn't love it very much, I assume no one love it.
I decided to improvise, Hudson  have plugin to gtalk so I created a gmail account for the builder and try this plugin.

Luck was not with me, the builder located in the lab on a private network so the plugin didn't worked.
However, Hudson have an option to send UDP package to a configured address as a result of a job state changed (job start, success or failed). so I configure Hudson to send my Linux machine notification about the build state.

Using Hudson REST API I was able to get all the missing information to send the needed data to the users who committed.
Since my machine connected to the web it was possible to start gtalk conversation quickly I wrote a Java program that send the users gtalk message using smack.
The result was beautiful the builder gtalk user start a conversation with the users that committed and report the build status.

Now for the last part, after I add an image to the gtalk user I was kind of attached to him, I was thinking it would be nice to talk with him from time to time, and then I remembered of my old friends from the university Eliza and Emacs Doctor.

The result is here: builder.webspace@gmail.com 
Here is a sample of our conversation

Just give it a try, open gtalk and chat with builder.webspace@gmail.com .
Barak.





13 comments:

  1. Thanks guys, for sharing such informative data.pushwizard

    ReplyDelete
  2. Thanks for sharing your experience. Keep updating more and more DevOps Online Training

    ReplyDelete
  3. Congratulations on your article, it was very helpful and successful. dca83d7ae48ef4168ca30bbdd71a649d
    website kurma
    numara onay
    website kurma

    ReplyDelete
  4. Thank you for your explanation, very good content. 08b1f6a530e7ddb2fe6a481e4497eb79
    define dedektörü

    ReplyDelete
  5. Thanks for your article. e2e79bb5767b301c49f90ecfb6d3bd1c
    evde iş imkanı

    ReplyDelete