While decorating the bitbucket with Sonarcloud analysis, i’m facing the following error:
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project : Not authorized. Please check the properties sonar.login and sonar.password. -> [Help 1]
Our Bitbucket-pipeline.yml template:
https://bitbucket.org/sonarsource/sample-maven-project/src/master/bitbucket-pipelines.yml
Note:
- This error is occurring after the build was successful
- We have declared Sonar token and its value in the repository level
- Enabled Bibucket pipipeline in repository level