This is a SpringBoot
project based on gradle build
tool and I am using AzureDevOps
task for SonarQube
Analysis.
Here are the properties I added in task:
sonar.java.binaries=build\classes
sonar.jacoco.reportPaths=build\jacoco\test.exec
sonar.language=java
sonar.tests=src\test\java
sonar.verbose=false
sonar.test.inclusions=**\test\**
It was working fine few days back and today suddenly it started failing with the error that 0 % code coverage.
When I compared the logs from successful and failure build I found this message in failed build.
INFO: Sensor JaCoCoSensor [java]
INFO: Both 'sonar.jacoco.reportPaths' and 'sonar.coverage.jacoco.xmlReportPaths' were set. 'sonar.jacoco.reportPaths' is deprecated therefore, only 'sonar.coverage.jacoco.xmlReportPaths' will be taken into account.
But I haven't configured anything specific to xmlReportPaths
so not sure why it started failing.
gradle version- 5.4.1
SonarQube Scanner version- 3.3.0.1492
SonarQube server version- 7.3.0
Any help is appreciated.