redmine_plugins_install

install redmine plugin

###############

redmine v3.1 plugins

#############
#download:Redmine Agile
http://email.redmineup.com/c/eJxFjsFuwyAQRL8GHyO8wAIHDpWq_Ea0LOua1saR7ci_X3KKNJd5hzdT0uRiMHmoyeXipxKdYCz5AaJ5Co4cj2bEDMrqXcpam7yet5XqMswpekvsQ4Do4mRRSyGxMQeNZMhDHJY0n-dTmS8F957rum4fCW9rZ0tlaYc8Vmr0I3snDgGtMvdz-5OmzPeIYhmcZYZSfPCRBUPuHbXTGWD0WodhT9fr-O0vaZ-r0LG198A_bhxD9A

#install agile:
#wget http://mirrors.163.com/.help/sources.list.trusty -O /etc/apt/sources.list
sed -i -e 's/deb.debian.org/mirrors.aliyun.com/' -e '/security/d' /etc/apt/sources.list


rm /var/lib/apt/lists/* -vf
rm /var/lib/apt/lists/partial/*
apt-get update
apt-get install -y libmysqlclient-dev
apt-get install -y libpq-dev
apt-get install -y libmagickwand-dev
bundle config mirror.https://rubygems.org https://gems.ruby-china.com
bundle install --without development test --no-deployment
bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production



###############
Installing rmagick 2.15.4 with native extensions
Installing unicorn 4.9.0 with native extensions
Bundle complete! 32 Gemfile dependencies, 53 gems now installed.
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.



###############

bundle exec rake redmine:plugins:migrate RAILS_ENV=production


drwxr-xr-x  7     501 staff     4096 May 26  2017 advanced_roadmap/
-rw-r--r--  1 root    root     52695 Oct 24 14:20 advanced_roadmap_v0.11.0.tar.gz
drwxr-xr-x  8 root    root      4096 Oct 24 14:31 redmine_lightbox2/
drwxr-xr-x  6 root    root      4096 Nov 17  2016 redmine_testlinklink/
drwxr-xr-x  8 root    root      4096 Oct 24 14:38 redmine_work_time/


##############
#redmine_theme_changer

wget https://bitbucket.org/haru_iida/redmine_theme_changer/downloads/redmine_theme_changer-0.1.0.zip
bundle exec rake redmine:plugins NAME=redmine_theme_changer RAILS_ENV=production


############
test gantt plugin

https://github.com/luciof55/plus_gantt
bundle exec rake redmine:plugins NAME=plus_gantt RAILS_ENV=production


###############themes
theme

##flatly_light_redmine
wget https://github.com/Nitrino/flatly_light_redmine/archive/v0.2.3.zip -O /redmine/redmine/public/themes/

##Dwarf
git clone https://github.com/themondays/Dwarf.git



############

#切换gem源
gem sources -l

#移除https://rubygems.org源

gem sources --remove https://rubygems.org/

#增加http://ruby.taobao.org/源

gem sources -a http://ruby.taobao.org/

#一步搞定:gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/

#更新缓存

gem sources -u 

############################




redmine v3.4 plugins




#############################
sed -i -e 's/deb.debian.org/mirrors.aliyun.com/' -e '/security/d' /etc/apt/sources.list
bundle config mirror.https://rubygems.org https://gems.ruby-china.com

#############################
#testlink
#https://www.r-labs.org/projects/rp-testlinklink/wiki/TestLinkLinkEn

#md5:8377e2943689ed91c2a2af1993b898ab
#install :https://www.r-labs.org/projects/rp-testlinklink/wiki/InstallSetupEn
#download page:
#https://zh.osdn.net/projects/rp-testlinklink/downloads/57441/rp-testlinklink-1.0.0.zip/

Installation and Settings:https://www.r-labs.org/projects/rp-testlinklink/wiki/InstallSetupEn
1. Extends the dawnloaded package in vender/plugins directory.
2. Reboot Redmine WEB server.
3. Open the setting page of "Redmine TestLink Link Plugin". ([Administration] -> [Plugins])
4. Change TestLink server address. (Default : http://localhost/testlink)
5. Set TestLink Version (1.8 or 1.7)

#############################
#additionals

https://github.com/AlphaNodes/additionals
$ cd $REDMINE_ROOT
$ git clone -b v2-stable git://github.com/alphanodes/additionals.git plugins/additionals
$ bundle install --without development test
$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production NAME=additionals

###############################
#Advanced roadmap & milestones plugin
wget https://redmine.ociotec.com/attachments/download/471/advanced_roadmap%20v0.11.0.tar.gz
md5:32f3682c6aa1c29a3815436e6cd67c8a
bundle exec rake redmine:plugins RAILS_ENV=production NAME=advanced_roadmap 

####
issue/bug:https://github.com/Coren/redmine_advanced_roadmap_v2/issues/87
点击[项目]->[xx项目名]->[路线图]
产生如下错误
####
  Rendered plugins/advanced_roadmap/app/views/versions/_total.html.erb (1.1ms)
  Rendered versions/_overview.html.erb (1.0ms)
  Rendered plugins/advanced_roadmap/app/views/versions/_info.html.erb (268.4ms)
  Rendered plugins/advanced_roadmap/app/views/versions/index.html.erb within layouts/base (429.5ms)
Completed 500 Internal Server Error in 1184ms (ActiveRecord: 419.9ms)

ActionView::Template::Error (wrong number of arguments (given 1, expected 0)):
    41: 
    42: <% html_title(l(:label_roadmap)) %>
    43: 
    44: <%= context_menu issues_context_menu_path %>
    45: 
    46: <%= render :partial => 'common/advanced_roadmap_footer' %>
  app/helpers/application_helper.rb:1301:in `context_menu'
  plugins/advanced_roadmap/app/views/versions/index.html.erb:44:in `_ca1a6cf82d426784b9e5eb619898ee14'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'
####
解决:https://github.com/Coren/redmine_advanced_roadmap_v2/issues/87
Quick fix. I'm not ruby developer, but this is working for me.
Change last line in plugins/advanced_roadmap_v2/app/views/versions/index.html.erb:45 from:
<%= context_menu issues_context_menu_path %> to <%= context_menu %>
####
this bug was fixed , see https://redmine.ociotec.com/issues/1413
####
点击[项目]->[xx项目名]->[配置]->[版本]
tailf log/production.log
issue/bug:
产生如下错误:
    59: <% html_title @version.name %>
    60: 
    61: <%= context_menu %>
    62: 
    63: <%= render :partial => 'common/advanced_roadmap_footer' %>
  app/helpers/application_helper.rb:1301:in `context_menu'
  plugins/advanced_roadmap/app/views/versions/show.html.erb:61:in `_2f55d6bdb3334f69399f267867fe9ff1'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'
注意文件:show.html.erb
####
解决:
edit plugins/advanced_roadmap/app/views/versions/show.html.erb

change the file from <%= context_menu issues_context_menu_path %> to <%= context_menu %>
####


###############################
#easy-gantt
https://www.easyredmine.com/redmine-gantt-plugin
bundle install --without development test --no-deployment
bundle exec rake redmine:plugins:migrate RAILS_ENV=production NAME=easy_gantt

###############################
#Issue Charts plugin
#https://github.com/masweetman/issue_charts
git clone https://github.com/masweetman/issue_charts.git plugins/issue_charts
bundle install --without development test --no-deployment
bundle exec rake redmine:plugins:migrate RAILS_ENV=production NAME=issue_charts

####
issue/bug
点击[项目]->[xx项目名]->[Issue Charts]
产生如下错误:
####
  Rendered plugins/issue_charts/app/views/charts/index.html.erb within layouts/base (6.3ms)
Completed 500 Internal Server Error in 557ms (ActiveRecord: 539.4ms)

ActionView::Template::Error (Asset was not declared to be precompiled in production.
Add `Rails.application.config.assets.precompile += %w( chartkick.js )` to `config/initializers/assets.rb` and restart your server):
    1: <%= javascript_include_tag 'https://www.google.com/jsapi', 'chartkick' %>
    2: 
    3: <%= render :partial => 'action_menu' %>
    4: 
  config/initializers/10-patches.rb:221:in `rails_asset_id'
  config/initializers/10-patches.rb:200:in `asset_path_with_asset_id'
  app/helpers/application_helper.rb:1398:in `javascript_include_tag'
  plugins/issue_charts/app/views/charts/index.html.erb:1:in `_5dcec33a2daa56c0fa26ef27271fba8a'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

####
解决:
root@b73df1876e27:/usr/src/redmine/config/initializers# echo 'Rails.application.config.assets.precompile += %w( chartkick.js )' > assets.rb
docker restart redmine-v34

###############################
#Redmine-Periodic-Task/
git clone http://github.com:/jperelli/Redmine-Periodic-Task.git plugins/periodictask
bundle install --without development test --no-deployment
bundle exec rake redmine:plugins:migrate NAME=periodictask RAILS_ENV=production
apache2ctl graceful

#################################
#select_to_select2
#作务
https://github.com/sf-cola/select_to_select2
git clone https://github.com/sf-cola/select_to_select2.git
bundle exec rake redmine:plugins:migrate NAME=select_to_select2 RAILS_ENV=production
docker restart redmine-v34

##问题,默认该插件会修改所有的select控件,会影响一些不需要的地方
##解决:
使用如下文件替换:
wget http://47.104.150.198:7586/redmine/plugin_assets/select_to_select2/javascripts/slecttoselect2main.js
并新增加一行:|| elements[i].id == 'issue_fixed_version_id'
##备注替换的内容:

function replaceAllSelect2(){

    var elements = document.getElementsByTagName("select");

    for (i = 0; i < elements.length; i++) {

        //只对以下id的select替换为select2
        if(elements[i].id == 'issue_author_id'
        || elements[i].id == 'issue_fixed_version_id'
        || elements[i].id == 'issue_assigned_to_id'){
            $("#" + elements[i].id).select2({
                width:"resolve",
                placeholder: "",
                allowClear: true
            });
        }
        
    }

}



##################################
theme A1
download page:http://email.redmineup.com/c/eJxFzjmKAzEQheHTqENTpVJpCRQYjK9htJRs4V5MTw99_dFEhhd9wc-rsXHwlKceOddULAFDA3iQw5IameTRsPVOGdilLn2V389lSX2eXtEAJwpC2pcmOWhAbAUwuMoZPco0x9dxfBRdlb6Pned5-UbKtgybe5H1Rx5LWtNT9iEGPIGi-7G9ZVV0QwfZmtRyKaxFQxarnQ4l2IDMmnwaPu1x37aj1_ETtf2P_wHIUUD9

 

from:https://www.testwo.com/blog/7603

Testlink与Redmine集成
2015-05-04  籽藤 签约作者
几年前折腾过testlink和bugfree的集成,那时还没有界面配置,要手动改config文件。

现在想要把测试用例管理和Bug管理整合起来,就非常方便了。况且Redmine也比当年的bugfree强大很多,用起来还不错。OK,进入正题~

1. 创建Tracker
管理员身份登陆Testlink,进入[System]-[Issue Tracker System];创建一个[IssueTracker],type选择[redmine],configuration的格式如下:

<issuetracker> <apikey>8666b8f759dd7b0a8be05fdcf041c935194f8a2e</apikey> <uribase>http://192.168.1.159:8008/redmine/</uribase> <uriview>http://192.168.1.159:8008/redmine/projects/pingxx/issues/</uriview> <projectidentifier>1</projectidentifier> <resolvedstatus> <status><code>3</code><verbose>Resolved</verbose></status> <status><code>5</code><verbose>Closed</verbose></status> </resolvedstatus> </issuetracker>
上述xml格式的配置是整合成功与否的关键。大部分人对uribase,uriview的配置都没有问题,可能对apikey,projectidentifier的获取有些困惑。

apikey - 访问redmine的[My account]页面,在[API access key]处点击“show”按钮,就能看到一个字符串了。Testlink就是通过这个字符串,调用redmine的API,从而完成redmine中Issue的创建。

projectidentifier - 是Redmine中某个项目的唯一标识。如果你不确定自己的projectidentifier是否正确,你可以在类似REST Client(浏览器API测试插件)中发送POST请求,测试Redmine API调用是否正确。

官方链接:http://www.redmine.org/projects/redmine/wiki/Rest_Issues

比如:http://192.168.1.159:8008/redmine/issues.xml Content-Type application/xml

<?xml version="1.0"?> <issue> <project_id>1</project_id> <subject>Example</subject> <priority_id>4</priority_id> </issue> 2. 将Tracker应用于项目
在Testlink的[Test Project Management]中,配置相关项目的[Issue Tracker Integration]。如果漏掉了这一步,你在test cases里面,还是看不到小虫图标的。因为你上一步配置的Tracker并不是Active状态。

完成了以上两步,就可以看到如下的效果了。

  

posted @ 2018-10-31 17:41  rootid  阅读(980)  评论(0)    收藏  举报