ERROR: Error during SonarQube Scanner execution ERROR: You must define the following mandatory properties for 'Unknown': sonar.projectKey

Template for a good bug report, formatted with Markdown:

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)
  • error observed (wrap logs/code around triple quote ``` for proper formatting)
  • steps to reproduce
  • potential workaround

P.S.: use the #bug:fault sub-category if you’re hitting a specific crash/error , or the #bug:fp sub-category for rules-related behaviour

I am facing the following problem, follows the image below … I have already configured the file, but still giving it, can anyone help me?

Hi @Joana_Carrasco

Please specify:

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)
  • give the commands you are using
  • share with us the full logs for each command
  • share with us the configuration files you are using (removing the sensitive information like tokens and passwords)

Thanks for the feedback, but I already decided … I needed to be running on the path where the project was. It worked …

A post was split to a new topic: sonar.projectKey unknown

could anyone help me for see the see the solution which joana_Carrasco has given error " Error during SonarScanner execution
ERROR: You must define the following mandatory properties for ‘Unknown’: sonar.projectKey
" as i lso facing this issue.
Sonarqube 8.3
sonar-scanner-- sonar-scanner-4.3.0.2102-linux

Hi,

There are certain values that must be provided to analysis. sonar.projectKey is one of them; sonar.host.url is the other. You can see how to provide these values in the documentation for the scanner you’re using. Here are the docs for SonarScanner CLI.

 
Ann