2016-10-17 2 views
1

모든 Maven 프로젝트에서 SonarQube 5.6.1로 코드 분석을 위해 Jenkins 1.642.2를 사용하십시오.Sonarqube 프로젝트 분석에 더 많은 시간이 필요합니다.

내가 사용 : 수중 음파 탐지기 - 자바 플러그인-4.2.jar

내가 함께 젠킨스 내 빌드를 시작할 때 Sonarqube 내가 같은 문제가 & sonarqube 러너를 검색하려고 :

$SONAR_MAVEN_GOAL -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_AUTH_TOKEN 

이 걸리는 sonarqube 5.6.1과 오랜 시간이 있지만

INFO: Sensor Lines Sensor 
INFO: Sensor Lines Sensor (done) | time=48ms 
INFO: Sensor JavaSquidSensor 
INFO: Configured Java source version (sonar.java.source): none 
INFO: JavaClasspath initialization 
WARN: Bytecode of dependencies was not provided for analysis of source files, you might end up with less precise results. Bytecode can be provided using sonar.java.libraries property 
INFO: JavaClasspath initialization (done) | time=0ms 
INFO: JavaTestClasspath initialization 
WARN: Bytecode of dependencies was not provided for analysis of test files, you might end up with less precise results. Bytecode can be provided using sonar.java.test.libraries property 
INFO: JavaTestClasspath initialization (done) | time=1ms 
INFO: Java Main Files AST scan 
INFO: 140 source files to be analyzed 
INFO: 66/140 files analyzed, current file: /var/lib/jenkins/jobs/INT_FR_Quality-test/workspace/MEjb/accDocMgr/src/main/java/com/jd/boas/process/billing/accdocmgr/impl/AccDocMgrMapper.java 
INFO: Java Main Files AST scan (done) | time=15608ms 
INFO: Java Test Files AST scan 
INFO: 140/140 source files have been analyzed 
INFO: 0 source files to be analyzed 
INFO: Java Test Files AST scan (done) | time=1ms 
INFO: Sensor JavaSquidSensor (done) | time=16072ms 
INFO: Sensor SCM Sensor 
INFO: SCM provider for this project is: svn 
INFO: 0/0 source files have been analyzed 
INFO: 140 files to be analyzed 
INFO: 1/140 files analyzed 
INFO: 4/140 files analyzed 
INFO: 7/140 files analyzed 
INFO: 9/140 files analyzed 
INFO: 12/140 files analyzed 
. 
. 
. 
INFO: 136/140 files analyzed 
INFO: 138/140 files analyzed 
INFO: 140/140 files analyzed 
INFO: Sensor SCM Sensor (done) | time=1065164ms 
INFO: Sensor Zero Coverage Sensor 
INFO: Sensor Zero Coverage Sensor (done) | time=114ms 
INFO: Sensor Code Colorizer Sensor 
INFO: Sensor Code Colorizer Sensor (done) | time=5ms 
INFO: Sensor CPD Block Indexer 
INFO: JavaCpdBlockIndexer is used for java 
INFO: Sensor CPD Block Indexer (done) | time=305ms 

프로젝트 스캔 4.5.1

이 10 시간 이상이 필요 sonarqube 아주 잘 일이다! 어떤 도움이 필요하십니까

+1

실행되는 데 약 17 분이 소요되는 SCM 센서를 제외하고는 프로젝트의 10 시간 분석을 나타내는 데 도움이되거나 전혀 도움이되지 않습니다. 당신이 제공 한 로그. 더 많은 정보를 공유 할 수 있습니까? 더 관련성이 높은 로그일까요? 시간이 소비되는 곳을 정확하게 찾으려고합니까? – benzonico

+0

내 프로젝트에는 많은 모듈이있어서 하나의 모듈을 테스트하지만 SCM 센서에서 시간을 보냈지 만, -Dsonar.scm.disabled = true를 추가하면 sonarqube에서 0 파일이 분석됩니다. svn 플러그인을 사용해 보았습니다. 1.2 및 1.3 같은 문제가 로그 http://pastebin.com/0q1hNJWf : – Inforedaster

답변

0

이전 데이터가없는 새로운 데이터베이스를 사용해보십시오. 아직도 분석 중입니까? 그렇지 않다면 현재 데이터베이스를 다시 색인해야한다는 의미입니다.