glcui 发表于 2018-9-16 09:18:22

持续集成与自动化部署 - jenkins & sonar代码质量管理平台 部署和基础使用(五)

# unzip sonar-examples-4.5.zip  #cd /server/tools/sonar-examples-4.5/projects/languages/php/php-sonar-runner
  # /usr/local/sonar-scanner/bin/sonar-scanner
  .....
  INFO: Sensor PHP sensor
  INFO: 1 source files to be analyzed
  INFO: 1/1 source files have been analyzed
  INFO: No PHPUnit test report provided (see 'sonar.php.tests.reportPath' property)
  INFO: No PHPUnit unit test coverage report provided (see 'sonar.php.coverage.reportPath' property)
  INFO: No PHPUnit integration test coverage report provided (see 'sonar.php.coverage.itReportPath' property)
  INFO: No PHPUnit overall coverage report provided (see 'sonar.php.coverage.overallReportPath' property)
  INFO: Sensor PHP sensor (done) | time=1030ms
  INFO: Sensor Analyzer for "php.ini" files
  INFO: Sensor Analyzer for "php.ini" files (done) | time=6ms
  INFO: Sensor Zero Coverage Sensor
  INFO: Sensor Zero Coverage Sensor (done) | time=24ms
  INFO: Sensor Code Colorizer Sensor
  INFO: Sensor Code Colorizer Sensor (done) | time=1ms
  INFO: Sensor CPD Block Indexer
  INFO: DefaultCpdBlockIndexer is used for php
  INFO: Sensor CPD Block Indexer (done) | time=0ms
  INFO: Calculating CPD for 1 files
  INFO: CPD calculation finished

  INFO: Analysis report generated in 265ms, dir>
  INFO: Analysis reports compressed in 14ms, zip>  INFO: Analysis report uploaded in 472ms
  INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/org.sonarqube:php-simple-sq-scanner
  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://localhost:9000/api/ce/task?id=AVthpV-GZk_1lOkjIdp8
  INFO: ------------------------------------------------------------------------
  INFO: EXECUTION SUCCESS
  INFO: ------------------------------------------------------------------------
  INFO: Total time: 16.131s
  INFO: Final Memory: 43M/117M

页: [1]
查看完整版本: 持续集成与自动化部署 - jenkins & sonar代码质量管理平台 部署和基础使用(五)