Hi All,
I use sonarcube version 7.9.1, sonar scanner: org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746.
I use sonar in CI process (Jenkins).
If the project doesn’t stand on my quality gate the process should stop.
After the command mvn:sonar run successfully I check by the rest api: api/qualitygates/project_status?projectKey=${PROJECT_KEY} what is the project status, and decide if i can continue with the process.
The problem: The data sent by the command mvn sonar is still run as background task in the sonarcube and i get the previous status .
Is there a way to know background task is running?
Or maybe other solution?
I don’t want to stop the CI process to X minutes, because the time is important for me.