SonarQube 升级到 5.4 后,所有质量配置文件都没有规则

编程入门 行业动态 更新时间:2024-10-28 20:26:16
本文介绍了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.

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

    SonarQube 升级到 5.4 后,所有质量配置文件都没有规则

    本文发布于:2023-11-02 03:28:19,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1551246.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:都没   升级到   配置文件   质量   有规则

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!