Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (49 sloc) 1.33 KB
date title author tags logo repo image
2016-01-01 00:00:00 +0000
Hipchat
jmccann
notifications
chat
hipchat.svg
jmccann/drone-hipchat
jmccann/drone-hipchat

The Hipchat plugin sends build status messages to users and rooms. The below pipeline configuration demonstrates simple usage:

pipeline:
  hipchat:
    image: jmccann/drone-hipchat
    room: my-room
    auth_token: my-auth-token

Example configuration with a custom hipchat server:

pipeline:
  hipchat:
    image: jmccann/drone-hipchat
    room: my-room
+   url: https://api.hipchat.foo.com

Example configuration with a custom message template:

pipeline:
  hipchat:
    image: jmccann/drone-hipchat
    room: my-room
+   template: |
+     {{ #success build.status }}
+       build {{ build.number }} succeeded. Good job.
+     {{ else }}
+       build {{ build.number }} failed. Fix me please.
+     {{ /success }}

Parameter Reference

url : HipChat server URL, defaults to https://api.hipchat.com

auth_token : HipChat V2 API token; use a room or user token with the Send Notification scope

room : ID or URL encoded name of the room

from: drone : A label to be shown in addition to sender's name

notify: false : Whether this message should trigger a user notification. See https://www.hipchat.com/docs/apiv2/method/private_message_user