Error during Sonar runner execution in Jenkins

1.377 kali dilihat
Langsung ke pesan pertama yang belum dibaca

Neeraj Lad

belum dibaca,
30 Des 2014, 02.55.4330/12/14
kepadajenkins...@googlegroups.com
Hi All,

I have two questions: 

1: How to setup -e debugging parameter into Jenkins to see debugging log as mentioned at end of the error
 
2: I am struggling to integrate Sonar into Jenkins. I am getting following error which does not say much details

I have attached Jenkins configuration screenshot for your reference. 

Note: Same project is running if i run in Sonar server but when it comes to jenkins integration it throw error.   

Error Details:

Started by user anonymous
Building in workspace C:\Users\user\.jenkins\workspace\Try1
 > git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git.exe config remote.origin.url https://github.com/imentor/qa.git # timeout=10
Fetching upstream changes from https://github.com/imentor/qa.git
 > git.exe --version # timeout=10
using .gitcredentials to set credentials
 > git.exe config --local credential.helper store --file=\"F:\Laptop Backup\OpenSource\apache-tomcat-7.0.40\temp\git5891258861841529089.credentials\" # timeout=10
 > git.exe -c core.askpass=true fetch --tags --progress https://github.com/imentor/qa.git +refs/heads/*:refs/remotes/origin/*
 > git.exe config --local --remove-section credential # timeout=10
 > git.exe rev-parse "refs/remotes/origin/dev^{commit}" # timeout=10
 > git.exe rev-parse "refs/remotes/origin/origin/dev^{commit}" # timeout=10
Checking out Revision 10fed612086c1696c7beecc52feac924cb6fcf0d (refs/remotes/origin/dev)
 > git.exe config core.sparsecheckout # timeout=10
 > git.exe checkout -f 10fed612086c1696c7beecc52feac924cb6fcf0d
 > git.exe rev-list 10fed612086c1696c7beecc52feac924cb6fcf0d # timeout=10
[Try1] $ "F:\Laptop Backup\OpenSource\sonarInstallation\sonar-runner-2.4\bin\sonar-runner.bat" SonarRunner_01 -Dsonar.jdbc.driver=com.mysql.jdbc.Driver "-Dsonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?autoReconnect=true&useUnicode=true&characterEncoding=utf8" ******** ******** -Dsonar.host.url=http://localhost:9000 -Dsonar.projectBaseDir=C:\Users\user\.jenkins\workspace\Try1 "-Dproject.settings=F:/Laptop Backup/OpenSource/sonarInstallation/sonar-runner-2.4/sonar-project.properties"
F:/Laptop Backup/OpenSource/sonarInstallation/sonar-runner-2.4
SonarQube Runner 2.4
Java 1.8.0_25 Oracle Corporation (32-bit)
Windows 7 6.1 x86
INFO: Runner configuration file: F:\Laptop Backup\OpenSource\sonarInstallation\sonar-runner-2.4\conf\sonar-runner.properties
INFO: Project configuration file: F:\Laptop Backup\OpenSource\sonarInstallation\sonar-runner-2.4\sonar-project.properties
INFO: SonarQube Server 4.5.1
13:10:03.029 INFO  - Load global referentials...
13:10:03.287 INFO  - Load global referentials done: 258 ms
13:10:03.297 INFO  - User cache: C:\Users\user\.sonar\cache
13:10:03.307 INFO  - Install plugins
13:10:03.359 INFO  - Install JDBC driver
13:10:03.376 INFO  - Create JDBC datasource for jdbc:mysql://localhost:3306/sonar?autoReconnect=true&useUnicode=true&characterEncoding=utf8
13:10:04.688 INFO  - Initializing Hibernate
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 4.091s
Final Memory: 7M/19M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: Task SonarRunner_01 does not exist
ERROR: 
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
Build step 'Invoke Standalone Sonar Analysis' marked build as failure
Finished: FAILURE


Thanks in advance,
Neeraj
Sonar_Runner_Installation.png
Invoke_Standalone_Sonar_Analysis.png
Sonar_Installation_Config.png

corneil....@gmail.com

belum dibaca,
30 Des 2014, 08.08.0930/12/14
kepadajenkins...@googlegroups.com
Why don't you open a command prompt at the same location as your Jenkins job workspace and execute:
F:\Laptop Backup\OpenSource\sonarInstallation\sonar-runner-2.4\bin\sonar-runner.bat" SonarRunner_01 -Dsonar.jdbc.driver=com.mysql.jdbc.Driver "-Dsonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?autoReconnect=true&useUnicode=true&characterEncoding=utf8" <jdbcpassword> -Dsonar.host.url=http://localhost:9000 -Dsonar.projectBaseDir=C:\Users\user\.jenkins\workspace\Try1 "-Dproject.settings=F:/Laptop Backup/OpenSource/sonarInstallation/sonar-runner-2.4/sonar-project.properties" -e
The look at the output to try and determine why it is failing.

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ee80904e-ed9f-404a-bd1d-ec9b8e273bf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Neeraj Lad

belum dibaca,
30 Des 2014, 21.50.3530/12/14
kepadajenkins...@googlegroups.com
Hi Corneil,

Thanks for reply. 

I am using following versions :

  • Jenkins version: 1.594
  • Sonar Plug-in version : 2.1 

I tried to execute from command line and following error displayed to me.


ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
        at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
        at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
        at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
        at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
        at org.sonar.runner.api.Runner.execute(Runner.java:100)
        at org.sonar.runner.Main.executeTask(Main.java:70)
        at org.sonar.runner.Main.execute(Main.java:59)
        at org.sonar.runner.Main.main(Main.java:53)
Caused by: Task SonarRunner_01 does not exist


Any idea ?


 



Thanks & Regards,

 

Neerajkumar Lad
Senior Exploratory Tester  | Moolya
+91-9538268171 | neer...@moolya.com | www.moolya.com


Moolya is a mobility test solutions company. We solve 3 problems for our customers. Device Fragmentation, Quality and Automation.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.


--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/JAPJR6ccVTk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CACPng9Y%2Bo4AYKOWd3PD_siGLvF%2B5_je3yXp3LscLA9KcJqc87Q%40mail.gmail.com.

Neeraj Lad

belum dibaca,
31 Des 2014, 02.21.0431/12/14
kepadajenkinsci-users
Hi Corneil,

I would like to add more details:

i Just found the Jenkins server log ( Tomcat server log ) 

Dec 31, 2014 12:43:35 PM javax.jmdns.impl.DNSIncoming readAnswer
WARNING: There was an OPT answer. Not currently handled. Option code: 65002 dat
: B05083DC563D0EF7
Dec 31, 2014 12:43:35 PM javax.jmdns.impl.DNSIncoming readAnswer
WARNING: There was an OPT answer. Not currently handled. Option code: 65002 dat
: B05083DC563D0EF7
Dec 31, 2014 12:44:11 PM javax.jmdns.impl.DNSIncoming readAnswer
WARNING: There was an OPT answer. Not currently handled. Option code: 65002 dat
: B14D67B6579F226D
Dec 31, 2014 12:44:11 PM javax.jmdns.impl.DNSIncoming readAnswer
WARNING: There was an OPT answer. Not currently handled. Option code: 65002 dat
: B14D67B6579F226D
Dec 31, 2014 12:44:55 PM javax.jmdns.impl.DNSIncoming readAnswer
WARNING: There was an OPT answer. Not currently handled. Option code: 65002 dat
: B05083DC563D0EF7
Dec 31, 2014 12:44:55 PM javax.jmdns.impl.DNSIncoming readAnswer
WARNING: There was an OPT answer. Not currently handled. Option code: 65002 dat
: B05083DC563D0EF7
Dec 31, 2014 12:45:00 PM hudson.plugins.git.GitTool$DescriptorImpl getInstallat
on

Is this the problem ?


Thanks & Regards,

 

Neerajkumar Lad


Moolya is a mobility test solutions company. We solve 3 problems for our customers. Device Fragmentation, Quality and Automation.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

SPTeam SmartData

belum dibaca,
3 Jun 2016, 02.56.5403/06/16
kepadaJenkins Users, neer...@moolya.com









Hi

Anyone used sonar-runner in Android studio , when I run command "gradle sonarRunner" through terminal it give error as below :
"Can not invoke method public java.lang.Class org.sonar.plugins.surefire.SurefireSensor.dependsUponCoverageSensors()"

My Build.gradle file as below:
apply plugin: 'sonar-runner'

sonarRunner {
sonarProperties {
// can be also set on command line like -Dsonar.analysis.mode=incremental
property "sonar.host.url", "http://myserver.com"
property 'sonar.sourceEncoding', 'UTF-8'
property 'sonar.language', 'java'
property 'sonar.projectKey', 'com.projectKey'
//need to replace with your project package name
property 'sonar.projectName', 'projectName' // need to replace with your project name
property 'sonar.projectVersion', '1.0'
property 'sonar.sources', 'src/main/java'
}
}

If any one have any solution then please help me I am stuck here.

My Android studio version- 1.3.2
SonarQube Runner 2.3
SonarQube Server 5.3

Balas ke semua
Balas ke penulis
Teruskan
0 pesan baru