mule-sonarqube-plugin icon indicating copy to clipboard operation
mule-sonarqube-plugin copied to clipboard

Quality Gate used but is not working.

Open anupam-chakraborty opened this issue 5 years ago • 2 comments

Hi,

We found this issue that Quality Gate used but is not working.

We have configured the project to use the Standard Quality Gate, and we do see that the project shows Quality Gate passed even if there are errors / Vulnerabilities in the project. Please see the attached screenshot. We have created custom Quality Gate as well and it still does the same.

Check Result: SonarQualityGate Quality Gate Config: SonarQualityGate2

Does this code not validate the quality gate? Thanks for helping with this.

anupam-chakraborty avatar Oct 20 '20 04:10 anupam-chakraborty

Hi, Of that gate, the only metrics that the plugin generates is the coverage. But I don't see in the metrics of the project. Are you getting the coverage?

I guess the correct approach is to create a custom gate and configured the project to use it. Could you check that?

fperezpa avatar Nov 23 '20 14:11 fperezpa

@anupam-chakraborty

Your pic looks like a xml analysis, maybe you missing this workaround in the pom.xml properties:

<sonar.lang.patterns.xml>null</sonar.lang.patterns.xml>
<sonar.mule.file.suffixes>.xml</sonar.mule.file.suffixes>

GiuseppeMP avatar Jan 11 '22 16:01 GiuseppeMP