I just signed up for SonarCloud and trying to create my first project / scan. I follow the instructions on the site and it fails. It seems there are 2 parameters missings, not specified in the setup wizard.
Missing:
sonar.projectKey, sonar.organization
I tried passing them as yaml properties, variables, etc… but nothing works.
HOW DO I MAKE THIS WORK???
See steps below.
Using:
- BitBucket pipeline
- Python
Steps:
- Register to new SonarCloud account and create a new project.
- elect BitBucket pipeline
- Select New Pipeline
- Follow the steps: 1. Enable Bitbucket pipelines, 2 Add token 3. Add pipelines yaml file
- Commit → See error on bitbucket pipeline.
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
ERROR: You must define the following mandatory properties for 'Unknown': sonar.projectKey, sonar.organization
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
✖ SonarCloud analysis failed.
Setup screen on SonarCloud