Quality gate is error

Error message:

[INFO] ‘sonar.coverage.jacoco.xmlReportPaths’ is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jaco
[INFO] No report imported, no coverage information will be imported by JaCoCo XML Report Importer
[INFO] Sensor JaCoCo XML Report Importer [jacoco] (done) | time=3ms
[INFO] Sensor CSS Rules [javascript]

Injecting SonarQube environment variables using the configuration: SonarCloud
[Pipeline] {
[Pipeline] waitForQualityGate (hide)
Checking status of SonarQube task ‘AYbG6iuPi2ireUJ4ftWz’ on server ‘SonarCloud’
SonarQube task ‘AYbG6iuPi2ireUJ4ftWz’ status is ‘SUCCESS’
SonarQube task ‘AYbG6iuPi2ireUJ4ftWz’ completed. Quality gate is ‘ERROR’

How to fix this problem?

It looks like Sonar is behaving as expected – reporting a failed quality gate on the analysis. What does the SonarCloud UI say about the failed quality gate?

The coverage is 0 but the code is correct
I have no idea what it could be

Have you checked the SonarCloud documentation on test coverage?