Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) : Sonar 9.9 version
- how is SonarQube deployed: zip
- what are you trying to achieve: running a sonar scanner for npm based project
- what have you tried so far to achieve this: NPM based project scan report
I am getting below error while running npm sonar-scanner
error → ERROR: Error during SonarQube Scanner execution
ERROR: Validation of project failed:
o To use the property “sonar.branch.name” and analyze branches, Developer Edition or above is required. See Branch analysis for more information.
o To use the property “sonar.pullrequest.key” and analyze pull requests, Developer Edition or above is required. See Branch analysis for more information.
o To use the property “sonar.pullrequest.branch” and analyze pull requests, Developer Edition or above is required. See Branch analysis for more information.
o To use the property “sonar.pullrequest.base” and analyze pull requests, Developer Edition or above is required. See Branch analysis for more information.
ERROR:
I am not sure why this error is coming because I am not using these properties in my property file.
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!