sonar.Qualitygate 在 Sonar Qube 5.3 中已弃用.什么是替代方案? [英] sonar.Qualitygate is Deprecated in Sonar Qube 5.3. What is the alternative?

查看:37
本文介绍了sonar.Qualitygate 在 Sonar Qube 5.3 中已弃用.什么是替代方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上下文:在 Sonar Qube 中,存在一个自定义的质量门,称为 abcd.这不是默认的质量门.在 Jenkins 中,我使用参数为一组 API 配置了这个 SonarQube Quality Gate-Dsonar.QualityGate=abcd 并且工作正常.

Context: In Sonar Qube, there exists a custom Quality Gate which is called say abcd. This is NOT the default quality gate. And in Jenkins, I had configured this SonarQube Quality Gate for a set of APIs by using the parameter -Dsonar.QualityGate=abcd and it was working fine.

最近 Sonar Qube 升级到了 5.3 版.从那时起,abcd 质量门不起作用,默认质量门开始发挥作用,而不是所有 API 的 abcd 质量门.

Recently Sonar Qube was upgraded to version 5.3. Since then, the abcd quality gate is not working and the default quality gate is coming into play instead of the abcd quality gate for all the APIs.

经过分析,我了解到 sonar.QualityGate 在 5.3 版中已被弃用.

On analysis, I came to know that sonar.QualityGate is deprecated in Version 5.3.

问题:您能告诉我替代方案吗?以及如何确保这些 API 集具有 abcd 作为质量门而不是默认质量门?

Question: Can you please let me know what is the alternative? And how do I make sure that these set of APIs have abcd as the quality gate and not the default quality gate?

我更喜欢这样的解决方案,这样我可以在 Jenkins 上配置一些东西,因为我可以访问 Jenkins,但不能访问 Sonar Qube 配置.

I would prefer a solution such that I can configure something on Jenkins as I have access to Jenkins but not to Sonar Qube configurations.

推荐答案

在运行分析时,确实不能再使用参数设置项目的质量门了.这只能从 UI/WS 中实现,您可以在其中指定应该为哪个项目使用哪个 Quality Gate.

It's indeed no more possible to set the Quality Gate of a project using a parameter when running an analysis. It's only possible from the UI/WS, where you can specify which Quality Gate should be used for which project.

有关更多信息,请参阅文档:http://docs.sonarqube.org/display/声纳/质量+门.

See the documentation for more information : http://docs.sonarqube.org/display/SONAR/Quality+Gates.

这篇关于sonar.Qualitygate 在 Sonar Qube 5.3 中已弃用.什么是替代方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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