使用Jenkins 1.642.2对我所有的maven项目使用SonarQube 5.6.1进行代码分析。
我使用:sonar-java-plugin-4.2.jar
我试过Sonarqube扫描& sonarqube runner我在Jenkins开始构建时遇到同样的问题:
$SONAR_MAVEN_GOAL -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_AUTH_TOKEN
使用sonarqube 5.6.1需要很长时间,但它与sonarqube 4.5.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
项目扫描需要10个多小时! 任何帮助,请
答案 0 :(得分:0)
尝试没有先前数据的新数据库。分析还很长吗?如果不是,则意味着您当前的数据库必须重新索引,依此类推