BUILD FAILED because Execution fails for task ':sonarqube'

Hello,
I am new to SonarQube and I am trying to set up sonarqube and jacoco for test coverage in gitlab. Whenever I run Jacoco using “gradle build jacocoTestReport” in the terminal it runs just fine and I can look at my analysis. When I try to use “gradle test jacocoTestReport sonarqube” in the terminal it gets stuck on

<===========–> 88% EXECUTING [6s]
:sonarqube

and just stays like that for a few seconds and in the end fails with error

Task :sonarqube FAILED
FAILURE: Build failed with an exception.* What went wrong:
Execution failed for task ‘:sonarqube’.
QUALITY GATE STATUS: FAILED - View details on {my sonarqube url}"

Hi,

Welcome to the community!

Can you add --info to that command line and post the logs here, please?

 
Thx,
Ann