之前我們一直用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.gitCloning 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.3Note: checking out 'v1.0.3'.You are in 'detached HEAD' state. You can look around, make experimentalchanges and commit them, and you can discard any commits you make in thisstate without impacting any branches by performing another checkout.If you want to create a new branch to retain commits you create, you maydo so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_nameHEAD 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=productionroot@redmine:~/redmine-2.3# export RAILS_ENV
5. 再次運行redming依賴安裝命令:
root@redmine:~/redmine-2.3# bundle install --without development testYou cannot specify the same gem twice with different version requirements. You specified: nokogiri (< 1.6.0) and nokogiri (>= 0)
直接到plugins/redming_backlogs/Gemfile檔案中修改nokogiri的設定為
gem 'nokogiri', '< 1.6.0'
再運行上面的命令。說安裝nokogiri 1.5.10出錯,原因是缺少xslt庫,安裝之:
apt-get install libxslt-dev
6. 安裝holidays
gem install holidays --version 1.0.3gem install holidays
7. 現在運行預先安裝命令
root@redmine:~/redmine-2.3# bundle exec rake db:migrate
8. 開始安裝外掛程式:
root@redmine:~/redmine-2.3# bundle exec rake redmine:backlogs:install2.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. SupportSeparate values with a space (e.g. 1 3): 1,2,3You 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_trackerYou typed 'bug_feature_support_tracker'. Is this correct? (y/n) yStory 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_positionsdone!Installation complete. Please restart Redmine.Thank you for trying out Redmine Backlogs!
安裝完成,啟動redmine後開始試用。建立項目時選中backlogs即可。