Hi,

While trying to setup sonar with Jenkins, i am getting error:

$ sonar-runner

Runner configuration file: /opt/sonar-runner-1.3/conf/sonar-runner.properties
Project configuration file: 
/var/lib/jenkins/workspace/MDNS-6.7/sonar-project.properties
Runner version: 1.3
Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
OS name: "Linux", version: "2.6.42.12-1.fc15.x86_64", arch: "amd64"
Server: http://10.88.29.159:9000
Work directory: /var/lib/jenkins/workspace/MDNS-6.7/.sonar
Total time: 0.412s
Final Memory: 1M/238M
Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: 
org.sonar.runner.RunnerException: No files matching pattern "lib" in directory 
"/var/lib/jenkins/workspace/MDNS-6.7"
        at org.sonar.runner.Runner.delegateExecution(Runner.java:189)
        at org.sonar.runner.Runner.execute(Runner.java:78)
        at org.sonar.runner.Main.main(Main.java:61)
Caused by: org.sonar.runner.RunnerException: No files matching pattern "lib" in 
directory "/var/lib/jenkins/workspace/MDNS-6.7"
        at org.sonar.runner.Launcher.getLibraries(Launcher.java:142)
        at org.sonar.runner.Launcher.defineProject(Launcher.java:117)
        at org.sonar.runner.Launcher.execute(Launcher.java:61)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.sonar.runner.Runner.delegateExecution(Runner.java:186)
        ... 2 more

[kahmed@QA-AutomationBox2 MDNS-6.7]$ more sonar-project.properties

# required metadata
sonar.projectKey=my:MDNS
sonar.projectName=MDNS
sonar.projectVersion=1.0

# path to source directories (required)
sources=/var/lib/jenkins/workspace/MDNS-6.7

# path to test source directories (optional)
tests=/var/lib/jenkins/workspace/MDNS-6.7

# path to project binaries (optional), for example directory of Java bytecode
binaries=/var/lib/jenkins/workspace/MDNS-6.7

# optional comma-separated list of paths to libraries. Only path to JAR file 
and path to directory of classes are supported.
libraries=/var/lib/jenkins/workspace/MDNS-6.7/lib,/opt/sonar-3.1.1/war/sonar-server/WEB-INF/lib


# Uncomment this line to analyse a project which is not a java project.
# The value of the property must be the key of the language.
#sonar.language=cobol

# Additional parameters
my.property=value


Now, there IS a lib folder under the workarea/MDNS-6.7 containing the PROJECT's 
3rd party jar files

Reply via email to