Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.14 KB

hipchat.md

File metadata and controls

46 lines (30 loc) · 1.14 KB

Hipchat recipe

Installing

// deploy.php

require 'vendor/deployer/recipes/hipchat.php';

Configuration options

  • hipchat (required): accepts an array with the auth token and room id. Token can be generated on the "Group Admin / API" page on the hipchat website.

  • auth_token - Hipchat V1 auth token

  • room_id - Room ID or name

You can provide also other configuration options:

  • message - Deploy message, default is Deployment to '{$host}' on {$prod} was successful\n({$releasePath})
  • color - Message color, default is green
  • notify - Notify, default is 0
  • endpoint - API endpoint, change this if you run your own hipchat instance, default is https://api.hipchat.com/v1/rooms/message
// deploy.php

set('hipchat', [
    'auth_token' => 'abcdef...',
    'room_id'    => 'my room',
]);

Tasks

  • deploy:hipchat send message to hipchat

Suggested Usage

Since you should only notify Hipchat room of a successfull deployment, the deploy:hipchat task should be executed right at the end.

// deploy.php

after('deploy', 'deploy:hipchat');