2015-01-20 155 views
2

我想在Jenkins上配置Sonar插件,在jenkins上執行此SonarJob會導致錯誤。輸出控制檯不會指示導致此錯誤的是什麼。尋找一種方法來調試這個問題。Sonar runner Jenkins上的執行失敗

上安裝 - 一些信息 - >的SonarJob工作區是從另一個工作拷貝 - >配置聲納和聲納Runner在Jenkins->配置系統 - >聲納生成步驟被觸發「援引獨立聲納分析」 。輸出控制檯日誌如下

在此先感謝! LOKESH

Started by user [email protected] 
[EnvInject] - Loading node environment variables. 
Building on master in workspace /drv-cheetbld3_1/pipeline/jenkins/jobs/SonarQube1/workspace 
Copied 2,820 artifacts from "BI-Pattern_3.0_build" build number 41 
[workspace] $ /home/cheetahb/sonarhome/bin/sonar-runner Sonar_5.0_new -Dsonar.jdbc.driver=com.mysql.jdbc.Driver -Dsonar.jdbc.url=jdbc:mysql://9.37.213.8:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance ******** ******** -Dsonar.host.url=http:// vottlokesh. ottawa.ibm.com:9000/ -Dsonar.projectBaseDir=/drv-cheetbld3_1/pipeline/jenkins/jobs/SonarQube1/workspace -Dsonar.projectName=biPattern3.0 -Dsonar.projectVersion=1.0 -Dsonar.projectKey=biproject -Dsonar.verbose=true -Dsonar.sources=/drv-cheetbld3_1/pipeline/jenkins/jobs/SonarQube1/workspace 
SonarQube Runner 2.4 
Java 1.7.0_65 Oracle Corporation (64-bit) 
Linux 2.6.32-431.20.5.el6.x86_64 amd64 
INFO: Runner configuration file: /home/cheetahb/sonarhome/conf/sonar-runner.properties 
INFO: Project configuration file: NONE 
INFO: SonarQube Server 5.0 
18:23:43.161 INFO - Load global referentials... 
18:23:43.181 DEBUG - Download: http:// vottlokesh.ottawa.ibm.com:9000/batch/global (no proxy) 
18:23:43.926 INFO - Load global referentials done: 768 ms 
18:23:43.932 INFO - User cache: /home/cheetahb/.sonar/cache 
18:23:43.947 INFO - Install plugins 
18:23:43.947 DEBUG - Download index of plugins 
18:23:43.947 DEBUG - Download: http:// vottlokesh.ottawa.ibm.com:9000/deploy/plugins/index.txt (no proxy) 
18:23:44.066 INFO - Install JDBC driver 
18:23:44.066 DEBUG - Download index of jdbc-driver 
18:23:44.067 DEBUG - Download: http:// vottlokesh.ottawa.ibm.com:9000/deploy/jdbc-driver.txt (no proxy) 
18:23:44.079 INFO - Create JDBC datasource for jdbc:mysql://9.37.213.8:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance 
18:23:45.834 DEBUG - Testing JDBC connection 
18:23:48.209 DEBUG - Download: http:// vottlokesh.ottawa.ibm.com:9000/api/server (no proxy) 
18:23:48.523 INFO - Initializing Hibernate 
18:23:48.526 DEBUG - hibernate.generate_statistics: false 
18:23:48.527 DEBUG - hibernate.dialect: org.sonar.core.persistence.dialect.MySql$MySqlWithDecimalDialect 
18:23:48.527 DEBUG - hibernate.connection.provider_class: org.sonar.jpa.session.CustomHibernateConnectionProvider 
18:23:50.751 DEBUG - Loaded 2689 properties from l10n bundles 
INFO: ------------------------------------------------------------------------ 
INFO: EXECUTION FAILURE 
INFO: ------------------------------------------------------------------------ 
Total time: 8.801s 
Final Memory: 35M/355M 
INFO: ------------------------------------------------------------------------ 
ERROR: Error during Sonar runner execution 
ERROR: Unable to execute Sonar 
ERROR: Caused by: Task Sonar_5.0_new 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 

回答

2

你必須擺脫您在詹金斯作業配置上Task to run字段中設置的Sonar_5.0_new標籤。

相關問題