之前我们一直用IceScrum的免费版本来运作Scrum项目,用GitLab来做做Issue管理,但是出现了一些问题。GitLab的issue不够好用,不能满足我们的需求,同时issue没有办法放在Scrum中作为backlog,不能在sprint plan时轻易的变成task,需要人工创建task。结果没有人愿意这样干,特别是在工作节奏快,issue多的时候。这样就直接导致以issue为中心的开发/测试工作和Scrum的脱离。
今天准备安装backlogs,就是为了能够在Redmine上进行Scrum管理工作,而不再使用IceScrum。这样既可以利用Redmine的强大的issue管理功能,又可以很容易的将Issue纳入Scrum管理流程中。
现在已经安装了Redmine,开始安装插件backlogs吧。主页在:http://www.redminebacklogs.net/
安装手册在:http://www.redminebacklogs.net/en/installation.html
但是有一些问题(这个user story看来没有经过acceptance test),所以我这里记录一下安装步骤:
1. 获取代码:
root@redmine:~# git clone https://github.com/backlogs/redmine_backlogs.git
Cloning into 'redmine_backlogs'...
remote: Counting objects: 20892, done.
remote: Compressing objects: 100% (7134/7134), done.
remote: Total 20892 (delta 13806), reused 20111 (delta 13163)
Receiving objects: 100% (20892/20892), 9.93 MiB | 20 KiB/s, done.
Resolving deltas: 100% (13806/13806), done.
2. 使用v1.0.3版本
git checkout v1.0.3
Note: checking out 'v1.0.3'. You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name HEAD is now at 42aab4c... v1.0.3
3. 复制到插件目录
cp -r redmine_backlogs/ redmine-2.3/plugins/
4. 然后进入redmine顶层目录, 设置环境变量
root@redmine:~/redmine-2.3# RAILS_ENV=production
root@redmine:~/redmine-2.3# export RAILS_ENV
5. 再次运行redming依赖安装命令:
root@redmine:~/redmine-2.3# bundle install --without development test
You cannot specify the same gem twice with different version requirements.
You specified: nokogiri (< 1.6.0) and nokogiri (>= 0)
直接到plugins/redming_backlogs/Gemfile文件中删除 这一行:
gem "nokogiri"
再运行上面的命令。说安装nokogiri 1.5.10出错,原因是缺少xslt库,安装之:
apt-get install libxslt-dev
6. 安装holidays
gem install holidays --version 1.0.3
gem install holidays
7. 现在运行预安装命令
root@redmine:~/redmine-2.3# bundle exec rake db:migrate
8. 开始安装插件:
root@redmine:~/redmine-2.3# bundle exec rake redmine:backlogs:install
2.3.2.stable.12037. You are running backlogs v1.0.3, latest version is 1.0.3 =====================================================
Redmine Backlogs Installer
=====================================================
Installing to the production environment.
Fetching card labels from http://git.gnome.org...done!
Configuring story and task trackers...
-----------------------------------------------------
Which trackers do you want to use for your stories?
1. Bug
2. Feature
3. Support
Separate values with a space (e.g. 1 3): 1,2,3
You selected the following trackers: Bug, Feature, Support. Is this correct? (y/n) y
-----------------------------------------------------
Creating a new task tracker.
Please type the tracker's name: bug_feature_support_tracker
You typed 'bug_feature_support_tracker'. Is this correct? (y/n) y
Story and task trackers are now set.
Migrating the database...** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:plugins:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:schema:dump
** Invoke redmine:backlogs:fix_positions (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:backlogs:fix_positions
done!
Installation complete. Please restart Redmine.
Thank you for trying out Redmine Backlogs!
安装完成,启动redmine后开始试用。创建项目时选中backlogs即可。