As the error says:
|Exception in thread "main" org.sonar.runner.RunnerException:*You must
define mandatory properties: sources*
at org.sonar.runner.Runner.checkMandatoryProperties(Runner.java:92)
at org.sonar.runner.Runner.execute(Runner.java:75)
at org.sonar.runner.Main.main(Main.java:61)
Build step '**** custom Sonar analysis' marked build as failure
Finished: FAILURE|
You haven't defined sources. E.g.:
|...
sonar.projectName= projectname
sonar.projectVersion=1.0.0
...
# path to source directories (required)
sources=myapp-core/src/main/java/,myapp-api/src/main/java/,myapp-web/src/main/java/
|
There is also some optional stuff:
|# path to project binaries (optional), for example directory of Java bytecode
binaries=myapp-core/target/classes,myapp-api/target/classes,myapp-web/target/classes
# optional comma-separated list of paths to libraries. Only path to JAR file
and path to directory of classes are supported.
libraries=myapp-web/target/myapp/WEB-INF/lib/*.jar
|
Note that all this can go to "Project properties" field of "Invoke
Standalone Sonar Analysis" step.
Regards,
Nux.
--
You received this message because you are subscribed to the Google Groups "Jenkins
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.