We had problem of old java version and sonar was not working in jenkins pipeline.
The version of Java (11.0.19) used to run this analysis is deprecated, and SonarCloud no longer supports it. Please upgrade to Java 17 or later.
We upgraded java and that error dissapeared, but new error appeared on the next step, quality gate step.
[2024-01-18T13:48:15.177Z] Checking status of SonarQube task 'AY0c1CmovPy3vj_zf3As' on server 'SonarCloud'
[2024-01-18T13:48:15.243Z] SonarQube task 'AY0c1CmovPy3vj_zf3As' status is 'SUCCESS'
[2024-01-18T13:48:15.322Z] SonarQube task 'AY0c1CmovPy3vj_zf3As' completed. Quality gate is 'ERROR'
Pipeline aborted due to quality gate failure: ERROR
This error should not be happening, because that code is good and used to build.
Can java problem cause this? Also, this problem happens on services, which weren’t build for some time. How can we approach this problem?
Pipeline is in jenkins, written in groovy language