Service hook

bitloka's Avatar

bitloka

31 Aug, 2016 08:23 AM

Hi,
I added a service hook ( url points to a slack hook). However there are no messages sent on build (or deploy). The slack hook works fine for a request sent through fiddler. Is there anything else that needs to be done to enable the service hook?

Thanks,

Vishal

  1. Support Staff 1 Posted by rune on 31 Aug, 2016 11:08 PM

    rune's Avatar

    Hi Vishal,

    I don't think the Slack API supports AppHarbor's service hook payload "out of the box", so that's probably it - I think you'd have to convert the format to match Slack's (in particular, have a "Text" property with the message you want to post).

    Note that service hooks are only invoked after a build has been processed. Here's a small example of code that post annotations to Librato upon worker startup and shutdown -- should be straightforward to adapt this to Slack's incoming webhook API.

    Best,
    Rune

  2. rune closed this discussion on 31 Aug, 2016 11:08 PM.

  3. bitloka re-opened this discussion on 01 Sep, 2016 12:55 AM

  4. 2 Posted by bitloka on 01 Sep, 2016 12:55 AM

    bitloka's Avatar

    Hi Rune,

    That makes sense. We'll take care of it from our side. Thanks for your inputs!

    Vishal

  5. rune closed this discussion on 01 Sep, 2016 09:20 AM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac