Merge pull request #281 from schubter/feature/hipchat-server
added HIPCHAT_SERVER environment variablepull/283/head
commit
974a9780e4
|
@ -5,6 +5,8 @@ import (
|
|||
"os"
|
||||
"strings"
|
||||
|
||||
"net/url"
|
||||
|
||||
"github.com/tbruyelle/hipchat-go/hipchat"
|
||||
|
||||
"github.com/keel-hq/keel/constants"
|
||||
|
@ -47,6 +49,11 @@ func (s *sender) Configure(config *notification.Config) (bool, error) {
|
|||
|
||||
s.hipchatClient = hipchat.NewClient(token)
|
||||
|
||||
if os.Getenv("HIPCHAT_SERVER") != "" {
|
||||
server, _ := url.Parse(os.Getenv("HIPCHAT_SERVER"))
|
||||
s.hipchatClient.BaseURL = server
|
||||
}
|
||||
|
||||
log.WithFields(log.Fields{
|
||||
"name": "hipchat",
|
||||
"channels": s.channels,
|
||||
|
|
Loading…
Reference in New Issue