2015-01-20 2 views
2

Jenkins에서 Sonar 플러그인을 구성하려고하는데 jenkins에서 SonarJob을 실행하면 오류가 발생합니다. 출력 콘솔에이 오류의 원인을 나타내는이 표시되지 않습니다. 이 문제를 디버그하는 방법을 찾고 있습니다.Sonar runner Jenkins에서 실행 오류가 발생했습니다.

설치에

- 일부 정보 ->는 SonarJob 작업 공간이 다른 작업에서 복사 -> 수중 음파 탐지기와 젠킨스의 소나 러너> 구성 시스템 구성 -> 소나 빌드 단계가 트리거됩니다 "독립 수중 음파 탐지기 분석을 호출" . 출력 콘솔 로그는 다음과 같습니다.

감사의 말! 록쉬

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 라벨을 제거해야합니다.

관련 문제