SonarQube 升级到 5.4 后,所有质量配置文件都没有规则 [英] All quality profiles have no rules when SonarQube is upgraded to 5.4

查看:34
本文介绍了SonarQube 升级到 5.4 后,所有质量配置文件都没有规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前正在运行一个版本为 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.

  1. 复制已安装插件的列表并停止您的旧 SonarQube 服务器.
  2. 下载新的 SonarQube 版本并在空数据库(例如捆绑的 H2 数据库)上启动它.
  3. 安装(从更新中心)您想要的插件.
  4. 安装您的自定义插件(如果有).
  5. 更新 conf/sonar.properties 文件以使用旧实例中的相关配置,包括生产数据库的连接信息.
  6. 停止新的 SonarQube 服务器.
  7. 从新的 SonarQube 服务器中删除以下文件夹: data, temp
  8. 启动新的 SonarQube 实例:大功告成!

这篇关于SonarQube 升级到 5.4 后,所有质量配置文件都没有规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆