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

查看:42
本文介绍了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 版本并在一个空的 DB(例如捆绑的 H2 DB)上启动它.
  3. 安装(从更新中心)您想要的插件.
  4. 安装您的自定义插件(如果有).
  5. 更新 conf/sonar.properties 文件以使用旧实例的相关配置,包括生产数据库的连接信息.
  6. 停止您的新 SonarQube 服务器.
  7. 从新的 SonarQube 服务器中删除以下文件夹: data, temp
  8. 启动新的 SonarQube 实例:大功告成!

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

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