声纳分析间歇性失败

时间:2017-03-31 00:41:29

标签: sonarqube sonar-runner sonarqube-scan sonarqube5.1

我正在使用Sonar服务器5.6。当我运行扫描仪时,它会间歇性地失败以获得同一段代码。很难确定行为。大多数情况下,我看到了两个错误。

错误1

    > ===================================================== INFO: 26 source files to be analyzed INFO: Sensor XmlFileSensor (done) | time=229ms
    > INFO: Sensor Zero Coverage Sensor INFO: 26/26 source files have been
    > analyzed INFO: Sensor Zero Coverage Sensor (done) | time=179ms INFO:
    > Sensor Code Colorizer Sensor INFO: Sensor Code Colorizer Sensor (done)
    > | time=521ms INFO: Sensor CPD Block Indexer INFO:
    > DefaultCpdBlockIndexer is used for cs INFO: DefaultCpdBlockIndexer is
    > used for css INFO: JavaCpdBlockIndexer is used for java INFO:
    > DefaultCpdBlockIndexer is used for js INFO: DefaultCpdBlockIndexer is
    > used for scss INFO: DefaultCpdBlockIndexer is used for ts INFO:
    > DefaultCpdBlockIndexer is used for web INFO: DefaultCpdBlockIndexer is
    > used for xml INFO: Sensor CPD Block Indexer (done) | time=315ms INFO:
    > Calculating CPD for 187 files INFO: CPD calculation finished INFO:
    > ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO:
    > ------------------------------------------------------------------------ INFO: Total time: 2:01.227s INFO: Final Memory: 68M/1098M INFO:
    > ------------------------------------------------------------------------

    ********************************************

Error 2

    > INFO: Sensor JaCoCoItSensor (done) | time=0ms INFO: Sensor
    > JaCoCoOverallSensor INFO: Sensor JaCoCoOverallSensor (done) | time=0ms
    > INFO: Sensor XmlFileSensor INFO: 31 source files to be analyzed INFO:
    > Sensor XmlFileSensor (done) | time=641ms INFO: Sensor Zero Coverage
    > Sensor INFO: 31/31 source files have been analyzed INFO: Sensor Zero
    > Coverage Sensor (done) | time=203ms INFO: Sensor Code Colorizer Sensor
    > INFO: Sensor Code Colorizer Sensor (done) | time=266ms INFO: Sensor
    > CPD Block Indexer INFO: DefaultCpdBlockIndexer is used for cs INFO:
    > DefaultCpdBlockIndexer is used for css INFO: JavaCpdBlockIndexer is
    > used for java INFO: DefaultCpdBlockIndexer is used for js INFO:
    > DefaultCpdBlockIndexer is used for scss INFO: DefaultCpdBlockIndexer
    > is used for ts INFO: DefaultCpdBlockIndexer is used for web INFO:
    > DefaultCpdBlockIndexer is used for xml INFO: Sensor CPD Block Indexer
    > (done) | time=250ms INFO: Calculating CPD for 284 files INFO: CPD
    > calculation finished INFO: Analysis report generated in 10578ms, dir
    > size=2 MB INFO: Analysis reports compressed in 1438ms, zip size=1 MB
    > INFO: Analysis report uploaded in 109ms INFO: ANALYSIS SUCCESSFUL, you
    > can browse
    > http://<Myserver>/sonar/dashboard/index/my:myproject INFO:
    > Note that you will be able to access the updated dashboard once the
    > server has processed the submitted analysis report INFO: More about
    > the report processing at
    > http://<Myserver>/sonar/api/ce/task?id=12323213
    > INFO: Executing post-job
    > org.sonar.plugins.buildbreaker.ForbiddenConfigurationBreaker INFO:
    > Executing post-job org.sonar.plugins.buildbreaker.QualityGateBreaker

INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: Waiting for report processing to complete...
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 7:10.898s
INFO: Final Memory: 74M/1194M
INFO: ------------------------------------------------------------------------


    > **************************************

我也在使用SonarQube构建断路器插件。其中一个原因是它无法等待分析。我不知道为什么处理/生成报告需要更多时间。虽然大多数时候它会很快处理结果,但有时需要花费太多时间。可能是什么原因?

有人可以告诉我如何解决这个问题。

阿图尔

0 个答案:

没有答案