with SonarCloud BASICS

ALM - Bitbucket Cloud
CI - Bitbucket Cloud
Repo Language - JS (React), NOT TypeScript

Hello All,

I have a fully functional integration between Bitbucket Cloud and SonarCloud. We are using the pipe:


to access and configure sonarcloud (via the EXTRA_ARGS variable). However, I’ve been asked to surface the configurations we made in SonarCloud’s UI (as well as the arguments in EXTRA_ARGS). The best way to do this is apparently by using the file.

My question is, how do I create a basic file that is calibrated to be used with Bitbucket Cloud in a JS based repo that uses SonarCloud? I’ve already read the documentation available under SonarScanner that discusses, but it wasn’t enough.

I need a better understanding of this file:

  • How to configure it (which properties are mandatory, which optional)
  • Where do I put the file?
  • How to ensure the pipeline will use the file?

Thank you in advanced for any help!

Hi @JasonLunsford and welcome to the community !

Parameters are available here :

You can first copy / paste all your existing params that you pass to the EXTRA_ARGS property and see if you are happy with them.

The file shall be put at the root of your project, or where you are executing the scanner from (but paths should then match correctly)

To be sure that the file is taken into account simply delete all the config from EXTRA_ARGS, you will see if it’s still working.


Thank you!

Your advice was more or less exactly what I ended up doing.

For those reading this comment in the future here is the properties file I ended up creating:

Project Meta Data

sonar.links.homepage=[repo URL]
sonar.links.scm=[repo URL]

Excluded files and folders

sonar.exclusions=node_modules/**/*, reports/**/*

Files and folders to be scanned


Test sources


Optional Settings


1 Like