We recently upgrade from SonarQube 3.6.3 to SonarQube 4.2.1.
We are running Sonar Runner 2.0 to publish gcov reports to SonarQube. Prior to the upgrade the reports were being published properly. After we upgraded to 4.2.1, the reports were not being published.
We are using sonar-cxx-plugin-0.2(community edition) and gcov 3.1
I tried with 0.9 with the corresponding options as well and had the same result.
Given below is the sonar-runner.log
Runner configuration file: /x/opt/sonar-runner-2.0/conf/sonar-runner.properties
Project configuration file: NONE
Runner version: 2.0
Java version: 1.6.0_20, vendor: Sun Microsystems Inc.
OS name: "Linux", version: "2.6.18-348.4.1.el5", arch: "amd64"
Default locale: "en_US", source code encoding: "ISO-8859-1" (analysis is platform dependent)
Other system properties:
sun.arch.data.model: "64"
Server: http://sonar.qa.paypal.com/sonar
Work directory: /x/hudson/workspace/Money5_CI_build_UT/.sonar
04:08:44.103 INFO - Load batch settings
04:08:44.116 DEBUG - Download: http://sonar.qa.paypal.com/sonar/batch_bootstrap/properties?dryRun=false (no proxy)
04:08:44.175 INFO - User cache: /x/home/ppbuild/.sonar/cache
04:08:44.184 INFO - Install plugins
04:08:44.184 DEBUG - Download index of plugins
04:08:44.184 DEBUG - Download: http://sonar.qa.paypal.com/sonar/deploy/plugins/index.txt (no proxy)
04:08:44.481 INFO - Install JDBC driver
04:08:44.481 DEBUG - Download index of jdbc-driver
04:08:44.481 DEBUG - Download: http://sonar.qa.paypal.com/sonar/deploy/jdbc-driver.txt (no proxy)
04:08:44.490 INFO - Create JDBC datasource for jdbc:oracle:thin:@xxxxxxxxxxxxxx:1556:xxxxxxx
04:08:51.540 DEBUG - Testing JDBC connection
04:08:52.371 DEBUG - Download: http://sonar.qa.paypal.com/sonar/api/server (no proxy)
04:08:52.579 INFO - Initializing Hibernate
04:08:52.583 DEBUG - hibernate.generate_statistics: false
04:08:52.584 DEBUG - hibernate.dialect: org.sonar.core.persistence.dialect.Oracle$Oracle10gWithDecimalDialect
04:08:52.584 DEBUG - hibernate.connection.provider_class: org.sonar.jpa.session.CustomHibernateConnectionProvider
04:08:52.584 DEBUG - hibernate.hbm2ddl.auto: validate
04:08:54.908 DEBUG - Loaded 2809 properties from l10n bundles
04:08:56.071 INFO - Load project settings
04:08:56.072 DEBUG - Download: http://sonar.qa.paypal.com/sonar/batch_bootstrap/properties?project=CIUT:Money5_CI_build_UT&dryRun=false (no proxy)
04:08:56.171 INFO - Apply project exclusions
04:08:56.559 DEBUG - Acquire semaphore on project : org.sonar.api.resources.Project@5e73e0d[id=4188121,key=CIUT:Money5_CI_build_UT,qualifier=TRK], with key batch-CIUT:Money5_CI_build_UT
04:08:56.608 INFO - ------------- Scan Money5_CI_build_UT
04:08:56.612 INFO - Load module settings
04:08:56.617 DEBUG - Download: http://sonar.qa.paypal.com/sonar/batch_bootstrap/properties?project=CIUT:Money5_CI_build_UT&dryRun=false (no proxy)
04:08:57.130 DEBUG - Available languages:
04:08:57.131 DEBUG - * Python => "py"
04:08:57.131 DEBUG - * c++ => "c++"
04:08:57.131 DEBUG - * Java => "java"
04:08:57.150 INFO - Quality profile : [name=PP-CPP-CodeCoverage-Profile,language=c++]
04:08:57.165 INFO - Excluded sources:
04:08:57.165 INFO - com/paypal/report/app/session/.java
04:08:57.165 INFO - com/ebay/content/merchantreportingwebapp/.java
04:08:57.165 INFO - com/_/DO.java
04:08:57.165 INFO - Excluded tests:
04:08:57.165 INFO - _/package-info.java
04:08:57.335 INFO - Index files
04:08:58.726 INFO - 1 files indexed
04:08:58.739 INFO - Loading technical debt model...
04:09:00.234 INFO - Loading technical debt model done: 1495 ms
04:09:00.251 DEBUG - ooo Using Connection [jdbc:oracle:thin:@xxxxxxxxx:1556:xxxxxxx, UserName=xxxxxx, Oracle JDBC driver]
04:09:00.255 DEBUG - ==> Preparing: select * from projects where id=?
04:09:00.275 DEBUG - ==> Parameters: 4188121(Long)
04:09:00.289 DEBUG - ooo Using Connection [jdbc:oracle:thin:@xxxxxxxxx:1556:xxxxxxxx, UserName=xxxxxx, Oracle JDBC driver]
04:09:00.289 DEBUG - ==> Preparing: update projects set name=?, long_name=?, description=?, scope=?, qualifier=?, kee=?, language=?, root_id=?, copy_resource_id=?, person_id=?, enabled=? where id=?
04:09:00.290 DEBUG - ==> Parameters: Money5_CI_build_UT(String), Money5_CI_build_UT(String), null, PRJ(String), TRK(String), CIUT:Money5_CI_build_UT(String), c++(String), null, null, null, true(Boolean), 4188121(Long)
04:09:00.305 INFO - Configure Maven plugins
04:09:00.646 INFO - Compare to previous analysis (2014-03-26)
04:09:00.667 INFO - Compare over 7 days (2014-03-28, analysis of 2014-03-26 13:34:29.473)
04:09:00.848 DEBUG - Initializers :
04:09:00.848 INFO - Base dir: /x/hudson/workspace/Money5_CI_build_UT
04:09:00.849 INFO - Working dir: /x/hudson/workspace/Money5_CI_build_UT/.sonar
04:09:00.849 INFO - Source dirs: /x/hudson/workspace/Money5_CI_build_UT
04:09:00.849 INFO - Source encoding: ISO-8859-1, default locale: en_US
04:09:00.860 DEBUG - Sensors : CxxSourceImporter -> ScmActivitySensor -> CpdSensor -> CxxSquidSensor -> CxxXunitSensor -> CxxCoverageSensor -> CxxCppNcssSensor -> InitialOpenIssuesSensor -> ProfileSensor -> ProfileEventsSensor -> ProjectLinksSensor -> VersionEventsSensor -> FileHashSensor
04:09:00.861 INFO - Sensor CxxSourceImporter...
04:09:01.268 INFO - Sensor CxxSourceImporter done: 407 ms
04:09:01.268 INFO - Sensor ScmActivitySensor...
04:09:01.268 INFO - Trying to guess scm provider from project layout...
04:09:01.268 DEBUG - Search for: /x/hudson/workspace/Money5_CI_build_UT/.svn
04:09:01.269 DEBUG - Search for: /x/hudson/workspace/Money5_CI_build_UT/.git
04:09:01.269 INFO - Found SCM type: git
04:09:01.270 INFO - Retrieve SCM blame information with encoding ISO-8859-1...
04:09:01.351 DEBUG - File not changed since previous analysis: /x/hudson/workspace/Money5_CI_build_UT/biz/Money/AuthApprovalCode/implementation/AuthApprovalCodeGenerator.cpp
04:09:02.412 INFO - Retrieve SCM blame information with encoding ISO-8859-1 done: 1142 ms
04:09:02.417 INFO - Sensor ScmActivitySensor done: 1149 ms
04:09:02.417 INFO - Sensor CpdSensor...
04:09:02.417 INFO - SonarBridgeEngine is used
04:09:02.418 INFO - Cross-project analysis disabled
04:09:02.423 DEBUG - Populating index from /x/hudson/workspace/Money5_CI_build_UT/biz/Money/AuthApprovalCode/implementation/AuthApprovalCodeGenerator.cpp
04:09:02.440 DEBUG - Detection of duplications for /x/hudson/workspace/Money5_CI_build_UT/biz/Money/AuthApprovalCode/implementation/AuthApprovalCodeGenerator.cpp
04:09:02.447 INFO - Sensor CpdSensor done: 30 ms
04:09:02.447 INFO - Sensor CxxSquidSensor...
04:09:02.451 DEBUG - Saving size measures for file '/x/hudson/workspace/Money5_CI_buildUT/biz/Money/AuthApprovalCode/implementation/AuthApprovalCodeGenerator.cpp'
04:09:02.475 INFO - Sensor CxxSquidSensor done: 28 ms
04:09:02.475 INFO - Sensor CxxXunitSensor...
04:09:02.475 DEBUG - Using pattern '.junit.xml' to find reports
04:09:02.492 INFO - Processing report '/x/hudson/workspace/Money5_CI_build_UT/TestAuthApprovalCodeGeneratorSuite.tst.junit.xml'
04:09:02.492 DEBUG - Transformation skipped: no xslt given
04:09:02.493 INFO - Parsing report '/x/hudson/workspace/Money5_CI_build_UT/TestAuthApprovalCodeGeneratorSuite.tst.junit.xml'
04:09:02.675 DEBUG - Saving test execution measures for file 'ApprovalCodeGeneratorTestFixture' under resource 'org.sonar.api.resources.File@7077092[key=ApprovalCodeGeneratorTestFixture,dir=,filename=ApprovalCodeGeneratorTestFixture,language=c++]'
04:09:02.676 INFO - Processing report '/x/hudson/workspace/Money5_CI_build_UT/TestGenerateAuthApprovalCodeHelperSuite.tst.junit.xml'
04:09:02.676 DEBUG - Transformation skipped: no xslt given
04:09:02.676 INFO - Parsing report '/x/hudson/workspace/Money5_CI_buildUT/TestGenerateAuthApprovalCodeHelperSuite.tst.junit.xml'
04:09:02.718 DEBUG - Saving test execution measures for file 'GenerateAuthApprovalCodeTestFixture' under resource 'org.sonar.api.resources.File@7fb66659[key=GenerateAuthApprovalCodeTestFixture,dir=,filename=GenerateAuthApprovalCodeTestFixture,language=c++]'
04:09:02.718 INFO - Sensor CxxXunitSensor done: 243 ms
04:09:02.718 INFO - Sensor CxxCoverageSensor...
04:09:02.718 DEBUG - Using pattern 'coverage-reports/coverage-.xml' to find reports
04:09:02.718 DEBUG - Parsing coverage reports
04:09:02.718 DEBUG - Parsing integration test coverage reports
04:09:02.719 DEBUG - Using pattern 'coverage-reports/it-coverage-.xml' to find reports
04:09:02.719 DEBUG - Parsing overall test coverage reports
04:09:02.719 DEBUG - Using pattern 'coverage-reports/overall-coverage-.xml' to find reports
04:09:02.719 INFO - Sensor CxxCoverageSensor done: 1 ms
04:09:02.719 INFO - Sensor CxxCppNcssSensor...
04:09:02.719 DEBUG - Using pattern 'cppncss-reports/cppncss-result-*.xml' to find reports
04:09:02.719 INFO - Sensor CxxCppNcssSensor done: 0 ms
04:09:02.719 INFO - Sensor InitialOpenIssuesSensor...
04:09:06.605 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:09:16.625 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:09:26.638 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:09:36.681 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:09:46.720 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:09:56.733 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:10:06.746 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:10:16.772 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:10:26.789 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:10:36.802 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:10:46.815 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:10:57.046 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:11:07.059 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:11:17.097 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:11:27.112 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:11:37.124 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:11:47.138 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:11:57.151 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:12:07.168 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:12:17.180 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:12:27.193 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:12:37.204 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:12:47.216 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:12:57.230 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:13:07.242 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:13:17.260 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:13:27.271 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:13:37.284 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:13:47.295 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:13:57.306 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:14:07.318 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:14:17.329 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:14:27.342 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:14:37.355 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:14:47.367 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:14:57.378 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:15:07.393 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:15:17.403 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:15:27.969 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:15:38.071 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:15:48.244 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:15:58.450 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:16:08.461 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:16:15.948 INFO - Sensor InitialOpenIssuesSensor done: 433229 ms
04:16:15.948 INFO - Sensor ProfileSensor...
04:16:15.961 INFO - Sensor ProfileSensor done: 13 ms
04:16:15.961 INFO - Sensor ProfileEventsSensor...
04:16:16.035 INFO - Sensor ProfileEventsSensor done: 74 ms
04:16:16.035 INFO - Sensor ProjectLinksSensor...
04:16:16.067 INFO - Sensor ProjectLinksSensor done: 32 ms
04:16:16.067 INFO - Sensor VersionEventsSensor...
04:16:16.443 INFO - Sensor VersionEventsSensor done: 376 ms
04:16:16.443 INFO - Sensor FileHashSensor...
04:16:16.447 INFO - Sensor FileHashSensor done: 4 ms
04:16:17.015 INFO - Execute decorators...
04:16:17.016 DEBUG - Decorators: ManualMeasureDecorator -> TaglistDecorator -> org.sonar.plugins.taglist.TaglistDistributionDecorator@5f790458 -> SumDuplicationsDecorator -> org.sonar.plugins.uselesscodetracker.decorator.TempMethodLinesDecorator@65447c32 -> org.sonar.plugins.uselesscodetracker.decorator.DuplicationsDecorator@58ba4bb9 -> org.sonar.plugins.uselesscodetracker.decorator.DeadCodeDecorator@2ec18c31 -> org.sonar.plugins.core.issue.IssueTrackingDecorator@44f6925f -> UnitTestDecorator -> org.sonar.plugins.core.security.ApplyProjectRolesDecorator@155ec9f4 -> org.sonar.plugins.core.sensors.DirectoriesDecorator@56ca0b57 -> org.sonar.plugins.core.sensors.FilesDecorator@6aaea944 -> org.sonar.plugins.core.timemachine.TimeMachineConfigurationPersister@e55bf9c -> org.sonar.plugins.core.timemachine.NewCoverageFileAnalyzer@70eae613 -> org.sonar.plugins.core.timemachine.NewItCoverageFileAnalyzer@4da7234f -> org.sonar.plugins.core.timemachine.NewOverallCoverageFileAnalyzer@17ff3f5d -> org.sonar.plugins.core.timemachine.NewCoverageAggregator@7698fef9 -> org.sonar.plugins.design.batch.ProjectDsmDecorator@1f96a21e -> FileTangleIndexDecorator -> f(lines) -> f(generated_lines) -> f(ncloc) -> f(generated_ncloc) -> f(classes) -> f(packages) -> f(functions) -> f(accessors) -> f(statements) -> f(public_api) -> f(comment_lines) -> f(comment_blank_lines) -> f(public_undocumented_api) -> f(commented_out_code_lines) -> f(complexity) -> f(complexity_in_classes) -> f(complexity_in_functions) -> f(class_complexity_distribution) -> f(function_complexity_distribution) -> f(file_complexity_distribution) -> f(lines_to_cover) -> f(uncovered_lines) -> f(conditions_to_cover) -> f(uncovered_conditions) -> f(it_lines_to_cover) -> f(it_uncovered_lines) -> f(it_conditions_to_cover) -> f(it_uncovered_conditions) -> f(overall_lines_to_cover) -> f(overall_uncovered_lines) -> f(overall_conditions_to_cover) -> f(overall_uncovered_conditions) -> f(rfc) -> f(rfc_distribution) -> f(lcom4_distribution) -> f(package_cycles) -> f(package_tangles) -> f(package_feedback_edges) -> f(package_edges_weight) -> f(new_lines_to_cover) -> f(new_uncovered_lines) -> f(new_conditions_to_cover) -> f(new_uncovered_conditions) -> f(new_it_lines_to_cover) -> f(new_it_uncovered_lines) -> f(new_it_conditions_to_cover) -> f(new_it_uncovered_conditions) -> f(new_overall_lines_to_cover) -> f(new_overall_uncovered_lines) -> f(new_overall_conditions_to_cover) -> f(new_overall_uncovered_conditions) -> org.sonar.plugins.cpd.decorators.DuplicationDensityDecorator@7a07f1ac -> org.sonar.plugins.technicaldebt.ComplexityDebtDecorator@410b69b -> org.sonar.plugins.uselesscodetracker.decorator.TotalDecorator@7335ea8e -> org.sonar.plugins.qi.ComplexityDistributionDecorator@251486c5 -> CountUnresolvedIssuesDecorator -> CountFalsePositivesDecorator -> org.sonar.plugins.core.technicaldebt.TechnicalDebtDecorator@587fc8a0 -> org.sonar.plugins.core.technicaldebt.NewTechnicalDebtDecorator@2d4cadc4 -> CommentDensityDecorator -> PackageTangleIndexDecorator -> f(file_complexity) -> f(class_complexity) -> f(function_complexity) -> org.sonar.plugins.core.sensors.CoverageDecorator@726b0a6a -> org.sonar.plugins.core.sensors.LineCoverageDecorator@5178efd5 -> org.sonar.plugins.core.sensors.BranchCoverageDecorator@5ac9b2bc -> org.sonar.plugins.core.sensors.ItLineCoverageDecorator@c5b644b -> org.sonar.plugins.core.sensors.ItCoverageDecorator@44157e43 -> org.sonar.plugins.core.sensors.ItBranchCoverageDecorator@5f1483a0 -> org.sonar.plugins.core.sensors.OverallLineCoverageDecorator@3bcdae24 -> org.sonar.plugins.core.sensors.OverallCoverageDecorator@3c63dc28 -> org.sonar.plugins.core.sensors.OverallBranchCoverageDecorator@400ae511 -> org.sonar.plugins.core.issue.WeightedIssuesDecorator@67646de5 -> org.sonar.plugins.qi.CodingViolationsDecorator@24dafcf2 -> org.sonar.plugins.qi.ComplexityDecorator@669c0287 -> org.sonar.plugins.qi.StyleViolationsDecorator@7fa17f0 -> org.sonar.plugins.qi.CoverageDecorator@c6a21b2 -> org.sonar.plugins.technicaldebt.TechnicalDebtDecorator@1f8b91cb -> IssuesDensityDecorator -> org.sonar.plugins.qi.QIDecorator@bca337c -> org.sonar.plugins.core.timemachine.TendencyDecorator@2cc50443 -> VariationDecorator
04:16:17.144 DEBUG - Reload the data measure: last_commit_datetimes_by_line, id=4350087895
04:16:17.144 DEBUG - Flush 1 data measures from memory:
04:16:17.153 DEBUG - Reload the data measure: last_commit_datetimes_by_line, id=4350087895
04:16:17.153 DEBUG - Flush 1 data measures from memory:
04:16:17.160 DEBUG - Reload the data measure: last_commit_datetimes_by_line, id=4350087895
04:16:17.160 DEBUG - Flush 1 data measures from memory:
04:16:17.568 DEBUG - Decorator time:
ManualMeasureDecorator: 15ms
TaglistDecorator: 3ms
org.sonar.plugins.taglist.TaglistDistributionDecorator@5f790458: 1ms
SumDuplicationsDecorator: 0ms
org.sonar.plugins.uselesscodetracker.decorator.TempMethodLinesDecorator@65447c32: 6ms
org.sonar.plugins.uselesscodetracker.decorator.DuplicationsDecorator@58ba4bb9: 1ms
org.sonar.plugins.uselesscodetracker.decorator.DeadCodeDecorator@2ec18c31: 0ms
org.sonar.plugins.core.issue.IssueTrackingDecorator@44f6925f: 86ms
UnitTestDecorator: 0ms
org.sonar.plugins.core.security.ApplyProjectRolesDecorator@155ec9f4: 24ms
org.sonar.plugins.core.sensors.DirectoriesDecorator@56ca0b57: 0ms
org.sonar.plugins.core.sensors.FilesDecorator@6aaea944: 0ms
org.sonar.plugins.core.timemachine.TimeMachineConfigurationPersister@e55bf9c: 14ms
org.sonar.plugins.core.timemachine.NewCoverageFileAnalyzer@70eae613: 39ms
org.sonar.plugins.core.timemachine.NewItCoverageFileAnalyzer@4da7234f: 9ms
org.sonar.plugins.core.timemachine.NewOverallCoverageFileAnalyzer@17ff3f5d: 7ms
org.sonar.plugins.core.timemachine.NewCoverageAggregator@7698fef9: 1ms
org.sonar.plugins.design.batch.ProjectDsmDecorator@1f96a21e: 1ms
FileTangleIndexDecorator: 0ms
f(lines): 0ms
f(generated_lines): 1ms
f(ncloc): 0ms
f(generated_ncloc): 0ms
f(classes): 1ms
f(packages): 0ms
f(functions): 0ms
f(accessors): 1ms
f(statements): 0ms
f(public_api): 0ms
f(comment_lines): 0ms
f(comment_blank_lines): 1ms
f(public_undocumented_api): 0ms
f(commented_out_code_lines): 1ms
f(complexity): 0ms
f(complexity_in_classes): 1ms
f(complexity_in_functions): 0ms
f(class_complexity_distribution): 0ms
f(function_complexity_distribution): 0ms
f(file_complexity_distribution): 0ms
f(lines_to_cover): 0ms
f(uncovered_lines): 0ms
f(conditions_to_cover): 0ms
f(uncovered_conditions): 0ms
f(it_lines_to_cover): 0ms
f(it_uncovered_lines): 0ms
f(it_conditions_to_cover): 0ms
f(it_uncovered_conditions): 0ms
f(overall_lines_to_cover): 0ms
f(overall_uncovered_lines): 1ms
f(overall_conditions_to_cover): 0ms
f(overall_uncovered_conditions): 0ms
f(rfc): 0ms
f(rfc_distribution): 0ms
f(lcom4_distribution): 0ms
f(package_cycles): 0ms
f(package_tangles): 0ms
f(package_feedback_edges): 0ms
f(package_edges_weight): 0ms
f(new_lines_to_cover): 0ms
f(new_uncovered_lines): 0ms
f(new_conditions_to_cover): 0ms
f(new_uncovered_conditions): 0ms
f(new_it_lines_to_cover): 0ms
f(new_it_uncovered_lines): 0ms
f(new_it_conditions_to_cover): 1ms
f(new_it_uncovered_conditions): 1ms
f(new_overall_lines_to_cover): 1ms
f(new_overall_uncovered_lines): 0ms
f(new_overall_conditions_to_cover): 0ms
f(new_overall_uncovered_conditions): 0ms
org.sonar.plugins.cpd.decorators.DuplicationDensityDecorator@7a07f1ac: 1ms
org.sonar.plugins.technicaldebt.ComplexityDebtDecorator@410b69b: 0ms
org.sonar.plugins.uselesscodetracker.decorator.TotalDecorator@7335ea8e: 0ms
org.sonar.plugins.qi.ComplexityDistributionDecorator@251486c5: 5ms
CountUnresolvedIssuesDecorator: 13ms
CountFalsePositivesDecorator: 1ms
org.sonar.plugins.core.technicaldebt.TechnicalDebtDecorator@587fc8a0: 55ms
org.sonar.plugins.core.technicaldebt.NewTechnicalDebtDecorator@2d4cadc4: 0ms
CommentDensityDecorator: 0ms
PackageTangleIndexDecorator: 0ms
f(file_complexity): 1ms
f(class_complexity): 0ms
f(function_complexity): 0ms
org.sonar.plugins.core.sensors.CoverageDecorator@726b0a6a: 0ms
org.sonar.plugins.core.sensors.LineCoverageDecorator@5178efd5: 0ms
org.sonar.plugins.core.sensors.BranchCoverageDecorator@5ac9b2bc: 0ms
org.sonar.plugins.core.sensors.ItLineCoverageDecorator@c5b644b: 0ms
org.sonar.plugins.core.sensors.ItCoverageDecorator@44157e43: 0ms
org.sonar.plugins.core.sensors.ItBranchCoverageDecorator@5f1483a0: 0ms
org.sonar.plugins.core.sensors.OverallLineCoverageDecorator@3bcdae24: 1ms
org.sonar.plugins.core.sensors.OverallCoverageDecorator@3c63dc28: 0ms
org.sonar.plugins.core.sensors.OverallBranchCoverageDecorator@400ae511: 0ms
org.sonar.plugins.core.issue.WeightedIssuesDecorator@67646de5: 1ms
org.sonar.plugins.qi.CodingViolationsDecorator@24dafcf2: 1ms
org.sonar.plugins.qi.ComplexityDecorator@669c0287: 3ms
org.sonar.plugins.qi.StyleViolationsDecorator@7fa17f0: 2ms
org.sonar.plugins.qi.CoverageDecorator@c6a21b2: 1ms
org.sonar.plugins.technicaldebt.TechnicalDebtDecorator@1f8b91cb: 1ms
IssuesDensityDecorator: 0ms
org.sonar.plugins.qi.QIDecorator@bca337c: 0ms
org.sonar.plugins.core.timemachine.TendencyDecorator@2cc50443: 100ms
VariationDecorator: 136ms
04:16:17.568 DEBUG - 232 measures to dump
04:16:18.410 INFO - Store results in database
04:16:18.410 DEBUG - Execute org.sonar.batch.index.ComponentDataPersister
04:16:18.422 DEBUG - Execute org.sonar.batch.issue.IssuePersister
04:16:18.426 DEBUG - Execute org.sonar.batch.phases.GraphPersister
04:16:18.714 INFO - ANALYSIS SUCCESSFUL, you can browse http://sonar.qa.paypal.com/sonar/dashboard/index/CIUT:Money5_CI_build_UT
04:16:18.715 DEBUG - Evict preview database
04:16:18.715 DEBUG - Download: http://sonar.qa.paypal.com/sonar/batch_bootstrap/evict?project=4188121 (no proxy)
04:16:18.779 DEBUG - Post-jobs : org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob@4b2b76b9 -> org.sonar.plugins.core.batch.IndexProjectPostJob@127f923d -> org.sonar.plugins.dbcleaner.ProjectPurgePostJob@7559ec47 -> org.sonar.plugins.buildbreaker.AlertBreaker@62a76581 -> org.sonar.plugins.buildbreaker.ForbiddenConfigurationBreaker@5bf92ac0
04:16:18.779 INFO - Executing post-job class org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob
04:16:18.780 INFO - Executing post-job class org.sonar.plugins.core.batch.IndexProjectPostJob
04:16:19.507 INFO - Executing post-job class org.sonar.plugins.dbcleaner.ProjectPurgePostJob
04:16:19.513 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT
04:16:19.521 INFO - -> Keep one snapshot per day between 2014-03-07 and 2014-04-03
04:16:19.522 INFO - -> Keep one snapshot per week between 2013-04-05 and 2014-03-07
04:16:19.522 INFO - -> Keep one snapshot per month between 2009-04-10 and 2013-04-05
04:16:19.523 INFO - -> Delete data prior to: 2009-04-10
04:16:19.523 DEBUG - ooo Using Connection [jdbc:oracle:thin:@xxxxxxxxx:1556:xxxxxxxx, UserName=xxxxxxxx, Oracle JDBC driver]
04:16:19.523 DEBUG - ==> Preparing: select * from projects where id=?
04:16:19.524 DEBUG - ==> Parameters: 4188121(Long)
04:16:19.527 DEBUG - ooo Using Connection [jdbc:oracle:thin:@xxxxxxxxx:1556:xxxxxxxx, UserName=xxxxxxxx, Oracle JDBC driver]
04:16:19.527 DEBUG - ==> Preparing: select * from projects where scope='PRJ' and root_id=?
04:16:19.527 DEBUG - ==> Parameters: 4188121(Long)
04:16:22.906 INFO - -> Clean Money5_CI_build_UT [id=4188121]
04:16:22.913 INFO - <- Clean snapshot 108766043
04:16:25.014 INFO - Executing post-job class org.sonar.plugins.buildbreaker.AlertBreaker
04:16:25.015 INFO - Executing post-job class org.sonar.plugins.buildbreaker.ForbiddenConfigurationBreaker
04:16:25.016 DEBUG - Release semaphore on project : org.sonar.api.resources.Project@5e73e0d[id=4188121,key=CIUT:Money5_CI_build_UT,qualifier=TRK], with key batch-CIUT:Money5_CI_build_UT
04:16:25.057 DEBUG - To prevent a memory leak, the JDBC Driver [oracle.jdbc.OracleDriver] has been forcibly deregistered
Total time: 7:41.885s
Final Memory: 18M/1962M
We recently upgrade from SonarQube 3.6.3 to SonarQube 4.2.1.
We are running Sonar Runner 2.0 to publish gcov reports to SonarQube. Prior to the upgrade the reports were being published properly. After we upgraded to 4.2.1, the reports were not being published.
We are using sonar-cxx-plugin-0.2(community edition) and gcov 3.1 I tried with 0.9 with the corresponding options as well and had the same result. Given below is the sonar-runner.log
Runner configuration file: /x/opt/sonar-runner-2.0/conf/sonar-runner.properties Project configuration file: NONE Runner version: 2.0 Java version: 1.6.0_20, vendor: Sun Microsystems Inc. OS name: "Linux", version: "2.6.18-348.4.1.el5", arch: "amd64" Default locale: "en_US", source code encoding: "ISO-8859-1" (analysis is platform dependent) Other system properties:
04:16:17.568 DEBUG - 232 measures to dump 04:16:18.410 INFO - Store results in database 04:16:18.410 DEBUG - Execute org.sonar.batch.index.ComponentDataPersister 04:16:18.422 DEBUG - Execute org.sonar.batch.issue.IssuePersister 04:16:18.426 DEBUG - Execute org.sonar.batch.phases.GraphPersister 04:16:18.714 INFO - ANALYSIS SUCCESSFUL, you can browse http://sonar.qa.paypal.com/sonar/dashboard/index/CIUT:Money5_CI_build_UT 04:16:18.715 DEBUG - Evict preview database 04:16:18.715 DEBUG - Download: http://sonar.qa.paypal.com/sonar/batch_bootstrap/evict?project=4188121 (no proxy) 04:16:18.779 DEBUG - Post-jobs : org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob@4b2b76b9 -> org.sonar.plugins.core.batch.IndexProjectPostJob@127f923d -> org.sonar.plugins.dbcleaner.ProjectPurgePostJob@7559ec47 -> org.sonar.plugins.buildbreaker.AlertBreaker@62a76581 -> org.sonar.plugins.buildbreaker.ForbiddenConfigurationBreaker@5bf92ac0 04:16:18.779 INFO - Executing post-job class org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob 04:16:18.780 INFO - Executing post-job class org.sonar.plugins.core.batch.IndexProjectPostJob 04:16:19.507 INFO - Executing post-job class org.sonar.plugins.dbcleaner.ProjectPurgePostJob 04:16:19.513 DEBUG - Updating semaphore batch-CIUT:Money5_CI_build_UT 04:16:19.521 INFO - -> Keep one snapshot per day between 2014-03-07 and 2014-04-03 04:16:19.522 INFO - -> Keep one snapshot per week between 2013-04-05 and 2014-03-07 04:16:19.522 INFO - -> Keep one snapshot per month between 2009-04-10 and 2013-04-05 04:16:19.523 INFO - -> Delete data prior to: 2009-04-10 04:16:19.523 DEBUG - ooo Using Connection [jdbc:oracle:thin:@xxxxxxxxx:1556:xxxxxxxx, UserName=xxxxxxxx, Oracle JDBC driver] 04:16:19.523 DEBUG - ==> Preparing: select * from projects where id=? 04:16:19.524 DEBUG - ==> Parameters: 4188121(Long) 04:16:19.527 DEBUG - ooo Using Connection [jdbc:oracle:thin:@xxxxxxxxx:1556:xxxxxxxx, UserName=xxxxxxxx, Oracle JDBC driver] 04:16:19.527 DEBUG - ==> Preparing: select * from projects where scope='PRJ' and root_id=? 04:16:19.527 DEBUG - ==> Parameters: 4188121(Long) 04:16:22.906 INFO - -> Clean Money5_CI_build_UT [id=4188121] 04:16:22.913 INFO - <- Clean snapshot 108766043 04:16:25.014 INFO - Executing post-job class org.sonar.plugins.buildbreaker.AlertBreaker 04:16:25.015 INFO - Executing post-job class org.sonar.plugins.buildbreaker.ForbiddenConfigurationBreaker 04:16:25.016 DEBUG - Release semaphore on project : org.sonar.api.resources.Project@5e73e0d[id=4188121,key=CIUT:Money5_CI_build_UT,qualifier=TRK], with key batch-CIUT:Money5_CI_build_UT 04:16:25.057 DEBUG - To prevent a memory leak, the JDBC Driver [oracle.jdbc.OracleDriver] has been forcibly deregistered Total time: 7:41.885s Final Memory: 18M/1962M
Coverage.xml coverage.xml
<?xml version="1.0" ?> <!DOCTYPE coverage SYSTEM 'http://cobertura.sourceforge.net/xml/coverage-03.dtd'>
Given below is the sonar-runner invoke command.
/x/opt/sonar-runner-2.0/bin/sonar-runner -X -Dsonar.projectKey=CIUT:Money5_CI_build_UT -Dsonar.projectName=Money5_CI_build_UT -Dsonar.projectVersion=1.0 -Dsonar.sources=/x/hudson/workspace/Money5_CI_build_UT -Dsonar.language=c++ -Dsonar.core.codeCoveragePlugin=cobertura -Dsonar.cxx.valgrind.reportPath=valgrind.xml -Dsonar.cxx.gcovr.reportPath=coverage.xml -Dsonar.cxx.xunit.reportPath='*.junit.xml'
Please revert to us at the earliest as this is critically affecting the metrics.