SonarCloud + Gitlab CI = KO

Hello I am using gitlab CI

When installing my sonar cloud account with it i get on maven build

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project profile-service: Not authorized. Please check the properties sonar.login and sonar.password. -> [Help 1]

But I am using the SonarCloud token + URL

Can someone explain me what is happening?

no one?

Hi @laminepro,

First things first, have you correctly set the either SONAR_TOKEN environment variable or the -Dsonar.login argument for the token ?
And, for the URL, have you set the sonar.host.url xml tag in the properties part of your pom.xml ?

You can check all the possible configuration here :
https://sonarcloud.io/documentation/analysis/scan/sonarscanner-for-maven/#analyzing

Thanks.