问题描述
我们目前正在运行一个版本为 5.1.2 的生产服务器,我们计划对其进行升级.
We are currently running a production server at version 5.1.2 which we are planning to upgrade.
测试表明升级到 5.3 可以正常工作.
Tests have shown that upgrading to 5.3 works as expected.
但是,从 5.1.2 -> 5.4 或 5.1.2 -> 5.3 -> 5.4 升级会导致 5.1.2 实例中的所有质量配置文件变为空 - 根本没有分配任何规则.
However, upgrading from 5.1.2 -> 5.4 or 5.1.2 -> 5.3 -> 5.4 results in all quality profiles from the 5.1.2 instance becoming empty - no rules assigned at all.
更糟糕的是,备份规则并尝试恢复它们会默默地失败.
Worse, backing up the rules and attempting to restore them fails silently.
有其他人经历过吗?有解决办法吗?
Has anyone else experienced this? Is there a work-around?
提前致谢.
推荐答案
管理视图(系统升级)中的更新说明与此处的说明不同:升级中
The update instructions in the Administration view (System Upgrades) differ from the instructions here: Upgrading
我将更改第一条指令如下(草书文本更改/添加的行),我会尝试保留 同步升级说明.
I would change the first instructions as follows (in cursive text the changed/added lines) and I'd try to keep the Upgrading instructions in sync.
- 复制已安装插件的列表并停止您的旧 SonarQube 服务器.
- 下载新的 SonarQube 版本并在空数据库(例如捆绑的 H2 数据库)上启动它.
- 安装(从更新中心)您想要的插件.
- 安装您的自定义插件(如果有).
- 更新 conf/sonar.properties 文件以使用旧实例中的相关配置,包括生产数据库的连接信息.
- 停止新的 SonarQube 服务器.
- 从新的 SonarQube 服务器中删除以下文件夹:
data, temp
- 启动新的 SonarQube 实例:大功告成!
这篇关于SonarQube 升级到 5.4 后,所有质量配置文件都没有规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!