我正在使用SonarQube 6.5 (build 27846)
和org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar
目标。我正在通过Jenkins FreeStyle项目启动,我直接调用Apache Maven 3.5.1,我们在Linux上使用OpenJDK 1.8。我为各种项目运行Sonar的工作间歇性地失败而没有任何警告信息。这是输出的尾部:
[INFO] 14:07:10.440 Default locale: "en_US", source code encoding: "UTF-8"
[DEBUG] 14:07:10.441 Work directory: /home/jenkins-slave/workspace/sonar_com.acme.project/target/sonar
[DEBUG] 14:07:10.441 Execution getVersion
[DEBUG] 14:07:10.441 Execution execute
[INFO] 14:07:13.841 Process project properties
[DEBUG] 14:07:13.872 Process project properties (done) | time=31ms
[INFO] 14:07:13.947 Load project repositories
[DEBUG] 14:07:13.973 GET 200 http://sonar.acme.com/batch/project.protobuf?key=com.acme%3Aproject | time=23ms
[INFO] 14:07:14.841 Load project repositories (done) | time=888ms
[DEBUG] 14:07:15.290 Available languages:
[DEBUG] 14:07:15.299 * CSS => "css"
[DEBUG] 14:07:15.299 * SCSS => "scss"
[DEBUG] 14:07:15.299 * Less => "less"
[DEBUG] 14:07:15.299 * Java => "java"
[DEBUG] 14:07:15.300 * Web => "web"
[DEBUG] 14:07:15.300 * JSON => "json"
[DEBUG] 14:07:15.300 * JavaScript => "js"
[INFO] 14:07:15.364 Load quality profiles
[DEBUG] 14:07:15.490 GET 200 http://sonar.acme.com/api/qualityprofiles/search.protobuf?projectKey=com.acme%3Aproject | time=90ms
[INFO] 14:07:15.852 Load quality profiles (done) | time=488ms
[INFO] 14:07:18.500 Load active rules
[DEBUG] 14:07:18.741 GET 200 http://sonar.acme.com/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AV4XP1MKUliByQMuS3Nj&p=1&ps=500 | time=215ms
Build step 'Invoke top-level Maven targets' marked build as failure
Sending e-mails to: project-dev@mailman.acme.com
Finished: FAILURE
日志文件中没有其他内容。 Jenkins日志文件中没有任何内容。 Sonar日志文件中没有任何内容。所有的search.protobuf都返回200秒....如果我重新运行构建,它通常会成功,但有时仍会失败。此时没有使用Sonar的其他工作,仍然可以击中或错过。我真的很想知道在这一点上要检查什么。一切都是最新的...请告知。