Sending Jenkins build notifications to a Skype chat

On all recent projects I’ve been working on teams use a Skype chat as one convenient way of communication. It’s especially useful to send notifications instantly to all people in the team. So I thought wouldn’t it be perfect to send build notifications as well?

Surely enough, there already is a Jenkins Skype plugin. However it seems a bit complicated to set up, requiring you to run Skype on the same machine that also acts as a Jenkins slave.

Hence I wrote buildchatbot, a Python script that sends notification using Skype4Py. It monitors Jenkins remotely by periodically checking a status URL over HTTP, so you can run it on any machine as long as it has Skype running.

Here it is in action:

skype-jenkins-notifications

You can grab it from github, along with more detailed setup instructions.

4 thoughts on “Sending Jenkins build notifications to a Skype chat

  1. sathiyaseelan says:

    Hi
    I’m having error like invalid skype chat name.

    Traceback (most recent call last):
    File “buildchatbot.py”, line 84, in
    BuildMonitor(BuildNotifier()).loop()
    File “buildchatbot.py”, line 75, in __init__
    self.chat = skype.Chat(SKYPE_CHAT)
    File “buildbdist.win32eggSkype4Pyskype.py”, line 474, in Chat
    File “buildbdist.win32eggSkype4Pychat.py”, line 350, in _GetStatus
    File “buildbdist.win32eggSkype4Pychat.py”, line 24, in _Property
    File “buildbdist.win32eggSkype4Pyskype.py”, line 296, in _Property
    File “buildbdist.win32eggSkype4Pyskype.py”, line 281, in _DoCommand
    Skype4Py.errors.SkypeError: [Errno 105] Invalid chat name

    I’m not so much familiar with python..But I somehow managed to install this.. and listrecentchats.py working fine.
    Can you any sample values for SKYPE_CHAT variable??

    Anyway you did nice work.
    Thanks in advance

    Like

  2. Artur Shpak says:

    Hi,

    When I execute the scrypt it holds on following step and does not do anything:
    # /usr/lib/python2.7/encodings/ascii.pyc matches /usr/lib/python2.7/encodings/ascii.py
    import encodings.ascii # precompiled from /usr/lib/python2.7/encodings/ascii.pyc

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s