sonarqube-scanner
version: 4.0.0 or 4.0.1When we run it as
npx sonarqube-scanner@^4.0.0 -Dsonar.qualitygate.wait="true" [....]
we expect non-zero exit code if Quality Gateway finds new issues that must be fixed.
But the actual result: this command always return 0
exit code, and our build never fails.
At the same time, sonarqube-scanner@^3.5.0
works as expected and really fails the build, but ^4.0.0
doesn't.
Does anyone know how to set it up with sonarqube-scanner@^4.0.0
and Node.js 20+?
It is a bug, confirmed buy sonarqube-scanner
developers.
And Jira issue: https://sonarsource.atlassian.net/browse/SCANNPM-39