Using SonarQube 6.7.4
The code base is a sample ReactJS project
Running the following sonar-scanner call
sonar-scanner
'-Dsonar.login=${env.SONAR_USERNAME}'
'-Dsonar.password=${env.SONAR_PASSWORD}'
'-Dsonar.projectDescription=Jenkins build for this report can be found at: https://cd.mastercard.int/jenkins/job/ConsumerSharedComponents/job/kharon-team/job/test-integrate-sonar-for-node-app/146/'
-Djavax.net.ssl.trustStore=/etc/pki/ca-trust/extracted/java/cacerts
-Dsonar.branch.name=trunk
-Dsonar.scm.disabled=true
-Dsonar.projectKey=test-react_0.1.0-new1
-Dsonar.sources=.
Yields the following error
ERROR: Error during SonarQube Scanner execution org.sonar.java.AnalysisException:
Please provide compiled classes of your project with sonar.java.binaries property
Why is the AnalysisException referring to the sonar.java.binaries properties?
We don’t have any JAVA code in the codebase, its a front-end project (all JS,HTML, CSS and static resources)
Any idea?