Allow notify option to be set for hipchat notification. (https://www.hipchat.com/docs/api/method/rooms/message)

This commit is contained in:
Your Name 2014-02-28 09:27:33 +00:00
parent 421950aede
commit f409d2b4f6

View file

@ -73,7 +73,7 @@ sub buildFinished {
from => 'Hydra', from => 'Hydra',
message => $msg, message => $msg,
message_format => 'html', message_format => 'html',
notify => 0, notify => $room->{room}->{notify} || 0,
color => $build->buildstatus == 0 ? 'green' : 'red' }); color => $build->buildstatus == 0 ? 'green' : 'red' });
print STDERR $resp->status_line, ": ", $resp->decoded_content,"\n" if !$resp->is_success; print STDERR $resp->status_line, ": ", $resp->decoded_content,"\n" if !$resp->is_success;