月份: 2019-11

Redmine与Gitblit联动

配置好redmine后,访问redmine地址,用管理员帐号登录,点击顶上的管理TAB菜单,左边的选项中选择信息,可以看到当前Redmine的各种环境的版本,本次搭建的最新版本(2019-11-07)如下

Environment:
Redmine version 4.0.5.stable
Ruby version 2.5.7-p206 (2019-10-01) [x86_64-linux]
Rails version 5.2.3
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Subversion 1.12.2
Git 2.19.1
Filesystem

Step1:在管理->配置->API 中,勾选开启Webservice

Step2:在管理->配置 ->版本库中,开启自动获取程序变更与WebService,并生成一个key密钥。因为是内网布署的,所以亮出密钥了:P

Step3:在Gitblit目录中配置apkkey与url
修改${gitblit-1.8.0-dir}/data/groovy/redmine-fetch.groovy文件以下行

/* specify the URL of your Redmine instance here */
def redmineURL = "http://192.168.8.31:8080/redmine/"
/* specify the URL of your Redmine instance here */
def apiKey = "LNOcmjUSy0Dxxu3Dpjxi"

Step4:在Gitblit版本库->编辑->receive 中Selected加入redmine–fetch

Step5:待续
参考https://blog.csdn.net/weixin_33953384/article/details/91693565