-
- Downloads
Merge branch 'hipchat_service' into 'master'
Add HipChat Notification Service My company is looking for a secure, private, stable and hopefully less-expensive alternative to our existing GitHub & Jenkins setup, and is currently focused on GitLab and GitLab CI after trying a number of other solutions. The biggest hurdle is integrations. I saw that GitLab CI was lacking a service to notify HipChat of builds, and in my search to see if there was a workaround I saw [someone ask about it](http://feedback.gitlab.com/forums/176466-general/suggestions/5350117-gitlab-ci-should-push-notifications-to-configured), and figured it just hadn't been done yet. So, I did it. * Move existing Slack service spec into a subdir, mirroring /app * Wire up HipChat service to the project and services controller. * Split the message building into own class. * 'namespace' room and token variables. * Enforce v2 client (bug in HipChat gem v1.5.0. fixed in 1.5.1). Note that I'm using the same version string as GitLab-CE, for shared installations. This does prevent 'old' room tokens from being reused. 'v1' is more compatible, but there is rumblings about finally deprecating it and moving to v2 only on their GitHub issue tracker for this gem. * Defer execution to a notifier worker, like the Slack service. * Ensure passing specs (basically a Slack service spec copy, fwiw) * Added change to the CHANGELOG I'm not sure exactly how your feedback's "Accepting Merge Requests" tag is supposed to work, but I'm happy to learn and change my contribution procedure if anything is wrong here. Thanks!  See merge request !83
No related branches found
No related tags found
Showing
- CHANGELOG 1 addition, 0 deletionsCHANGELOG
- Gemfile 3 additions, 0 deletionsGemfile
- Gemfile.lock 5 additions, 0 deletionsGemfile.lock
- app/controllers/services_controller.rb 2 additions, 1 deletionapp/controllers/services_controller.rb
- app/models/project.rb 2 additions, 1 deletionapp/models/project.rb
- app/models/project_services/hip_chat_message.rb 76 additions, 0 deletionsapp/models/project_services/hip_chat_message.rb
- app/models/project_services/hip_chat_service.rb 80 additions, 0 deletionsapp/models/project_services/hip_chat_service.rb
- app/workers/hip_chat_notifier_worker.rb 18 additions, 0 deletionsapp/workers/hip_chat_notifier_worker.rb
- spec/models/project_services/hip_chat_message_spec.rb 65 additions, 0 deletionsspec/models/project_services/hip_chat_message_spec.rb
- spec/models/project_services/hip_chat_service_spec.rb 61 additions, 0 deletionsspec/models/project_services/hip_chat_service_spec.rb
- spec/models/project_services/slack_message_spec.rb 0 additions, 0 deletionsspec/models/project_services/slack_message_spec.rb
- spec/models/project_services/slack_service_spec.rb 0 additions, 0 deletionsspec/models/project_services/slack_service_spec.rb
Loading
| Loading
| @@ -63,6 +63,9 @@ gem "default_value_for", "~> 3.0.0" |
# Slack integration | ||
gem "slack-notifier", "~> 1.0.0" | ||
# HipChat integration | ||
gem 'hipchat', '~> 1.5.0' | ||
# Other | ||
gem 'rake' | ||
gem 'foreman' | ||
Loading
| Loading
|
app/workers/hip_chat_notifier_worker.rb
0 → 100644
File moved
Please register or sign in to comment