08月10, 2016

redmine中安装WebHook插件完成任务信息的推送

为方便日常的沟通和管理,我们需要装一款插件,作为通知机器人,配合tower、worktile、零信等团队IM,体验非常好。

这里以零信作为参考,来添加WebHook。

适用的Redmine版本

  • Redmine 2.4.x, 2.6.x, 3.0.x

安装 Redmine Webhook 插件

$ cd $REDMINE_ROOT/plugins #进入redmine安装路径下的plugins路径
$ git clone git://github.com/suer/redmine_webhook.git
$ bundle install #安装webhook插件以来的gem
$ rake redmine:plugins:migrate RAILS_ENV=production

进入 Webhook 界面

进入需要加入 Webhook 的项目主页,点击「配置」,再点击「WebHook」

QQ截图20160810195101

添加 Webhook

然后将 零信生成的 Webhook 地址填入「URL」文本框中,点击保存即可

完成设置

最后,这个 Redmine 机器人就设置完成啦! 你现在能够在零信 中收到来自 Redmine 的提醒了!

注意:

安装插件过程中可能会出现各种错误如:

<pre class="lang:default decode:true ">rake aborted!
Gem::LoadError: You have already activated rake 11.2.2, but your Gemfile requires rake 11.1.2\. Prepending `bundle exec` to your command may solve this.
C:/Bitnami/redmine-3.3.0-1/apps/redmine/htdocs/config/boot.rb:6:in `<top (required)>'
C:/Bitnami/redmine-3.3.0-1/apps/redmine/htdocs/config/application.rb:1:in `<top (required)>'
C:/Bitnami/redmine-3.3.0-1/apps/redmine/htdocs/Rakefile:5:in `<top (required)>'
LoadError: cannot load such file -- bundler/setup
C:/Bitnami/redmine-3.3.0-1/apps/redmine/htdocs/config/boot.rb:6:in `<top (required)>'
C:/Bitnami/redmine-3.3.0-1/apps/redmine/htdocs/config/application.rb:1:in `<top (required)>'
C:/Bitnami/redmine-3.3.0-1/apps/redmine/htdocs/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)</pre>

我们只需更新gem rake即可:

<pre class="lang:default decode:true ">bundle update rake</pre>

本文链接:https://www.51redmine.com/post/redmine中安装webhook插件完成任务信息的推送.html

-- EOF --

Comments

comments powered by HyperComments