Flowdock

Expand all | Collapse all

Jenkins pipeline to flowdock notifier

  • 1.  Jenkins pipeline to flowdock notifier

    Posted 08-08-2018 04:46 AM

    I want to send notification from status of  each stages in jenkins pipeline as a comment to Thread message. My questions are following.

    1. How to create thread message while posting status value to flowdock?

    2. How to capture that thread_id and post the status of each stages to that particular thread?



  • 2.  Re: Jenkins pipeline to flowdock notifier

    Posted 08-08-2018 08:00 AM

    Sandeep,

     

    There is a plugin currently that may do what you need, Help | Hudson / Jenkins 

     

    However, if it is possible to customize what is sent, then you can follow the information in the API Documentation to get things posted to a Flow.  Rest | Flowdock API 

     

    The basic steps are:

    1. Post the first message to the Inbox or Chat.
    2. Flowdock sends a JSON response back from the post.  Save the 'thread_id' that comes back for future use.
    3. Post subsequent messages and include 'thread_id' in the payload and it will be threaded with the first post.

     

    Hope that helps.

     

    Michael



  • 3.  Re: Jenkins pipeline to flowdock notifier

    Posted 08-08-2018 10:01 AM

    Hi Dandeep,

    Check out these articles demonstrating some of this:

     

    On how to post status:

    https://comm.support.ca.com/kb/flowdock-rest-api-how-to-change-my-status/kb000105965

     

    On how to use <thread_id>:

    Flowdock: REST API - How to reply to a thread - CA Knowledge 

     

    Thanks,

    Sagi