在为我的Jenkins-Builds更改为SonarRunner后,我的自动生成的报告出现问题。
我从clover.xml生成这些报告但是我在Jenkins Job中遇到了这个问题:
13:15:00.760 INFO - Sensor org.sonar.plugins.clover.CloverSensor
13:15:00.760 WARN - Clover XML report not found
13:15:00.760 INFO - Sensor org.sonar.plugins.clover.CloverSensor (done) | time=1ms
13:15:00.760 INFO - Sensor SurefireSensor
13:15:00.761 INFO - parsing d:\seu\jenkins\workspace\dev2015.0.0 module.fakturierung.Buch.Tabelle.Test.Testjob\target\surefire-reports
13:15:00.761 ERROR - Reports path not found or is not a directory: d:\seu\jenkins\workspace\dev2015.0.0 module.fakturierung.Buch.Tabelle.Test.Testjob\target\surefire-reports
13:15:00.761 INFO - Sensor SurefireSensor (done) | time=1ms
这里是我的sonar-project.properties:
# required metadata
sonar.projectKey=de.adnova:module.fakturierung:test
sonar.projectName=module.fakturierung Testjob
sonar.projectVersion=2015.0.0-SNAPSHOT
# path to source directories (required)
sonar.sources=src/module.fakturierung
# exclusions from path
sonar.exclusions=**/src/generated/java/**, **/test/**, **/clover/**
#clover
sonar.java.coveragePlugin=clover
sonar.clover.reportPath= D:/SEU/Jenkins/workspace/dev2015.0.0 module.fakturierung.Buch.Tabelle.Test.Testjob/src/module.fakturierung/target/site/clover/clover.xml
SonarQube 5.2(Clover-Plugin 3.1)
Maven 2.3
我尝试了很多,但没有任何效果。谢谢!