New BitBucket pipeline instructions are incomplete

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.

sonar.projectKey, sonar.organization

I tried passing them as yaml properties, variables, etc… but nothing works.


See steps below.


  • BitBucket pipeline
  • Python


  1. Register to new SonarCloud account and create a new project.
  2. elect BitBucket pipeline
  3. Select New Pipeline
  4. Follow the steps: 1. Enable Bitbucket pipelines, 2 Add token 3. Add pipelines yaml file
  5. 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: Re-run SonarScanner using the -X switch to enable full debug logging.
✖ SonarCloud analysis failed.

Setup screen on SonarCloud

Hey there.

Ideally, you shouldn’t have to specify these anywhere when you have a bound project.

  • Can you specify which languages are in the project you’re analyzing?
  • Can you share what’s happening in the logs right before it fails? Do you see any log lines like the following?

INFO: Check ALM binding of project 'colinmuellerbbc_sdfdsaf'
INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'colinmuellerbbc_sdfdsaf' (done) | time=171ms