Failed to execute Sonar

Hi Team,

Trying to run sonar analysis on Jenkins and encountered with the below error.

Please help.

10:43:00 [WARNING] The requested profile “sonar” could not be activated because it does not exist. 10:43:00 [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) on project bpu-jcat: Not authorized. Analyzing this project requires to be authenticated. Please provide the values of the properties sonar.login and sonar.password. -> [Help 1] 10:43:00 [ERROR] 10:43:00 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 10:43:00 [ERROR] Re-run Maven using the -X switch to enable full debug logging.

Best Regards
Tulasi Perigisetti

Analyzing this project requires to be authenticated. Please provide the values of the properties sonar.login and sonar.password.

Have you tried to add these properties?

1 Like

Hi Scott,

Authenticating with the token will not suffice the requirement?

Best Regards
Tulasi Perigisetti

Yes, it is, but it seems you’re passing an invalid token.

Thank you. Issue is resolved.