2015-01-20 83 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标签。