summaryrefslogtreecommitdiffstats
path: root/artifactbroker
diff options
context:
space:
mode:
authorLiang Ding <liang.ding@intel.com>2020-02-25 00:46:14 -0800
committerLiang Ding <liang.ding@intel.com>2020-02-25 00:47:01 -0800
commite6a4b2a5809b359397730f2ae3517a3ffc5204a4 (patch)
treea2479bfe1db91af3bd71fd629e818caa78a41b04 /artifactbroker
parent35111a07986a76e53e8e331067a129237ceb5962 (diff)
fix sonarcloud coverage rate issue1.5.1
Change-Id: Ice1dedbb3fe2a1aa90e35186774f8b5a37632887 Issue-ID: MULTICLOUD-982 Signed-off-by: Liang Ding <liang.ding@intel.com>
Diffstat (limited to 'artifactbroker')
-rw-r--r--artifactbroker/pom.xml12
1 files changed, 8 insertions, 4 deletions
diff --git a/artifactbroker/pom.xml b/artifactbroker/pom.xml
index 54983ef..53d6426 100644
--- a/artifactbroker/pom.xml
+++ b/artifactbroker/pom.xml
@@ -34,6 +34,10 @@
<version.logback>1.2.3</version.logback>
<policy.common.version>1.3.4</policy.common.version>
<policy.engine.version>1.3.5</policy.engine.version>
+ <sonar.language>java</sonar.language>
+ <sonar.coverage.jacoco.xmlReportPaths>
+ ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
+ </sonar.coverage.jacoco.xmlReportPaths>
</properties>
<modules>
<module>model</module>
@@ -138,7 +142,7 @@
<goal>prepare-agent</goal>
</goals>
<configuration>
- <destFile>${sonar.jacoco.reportPath}</destFile>
+ <destFile>${sonar.coverage.jacoco.xmlReportPaths}</destFile>
<append>true</append>
</configuration>
</execution>
@@ -149,7 +153,7 @@
<goal>report</goal>
</goals>
<configuration>
- <dataFile>${sonar.jacoco.reportPath}</dataFile>
+ <dataFile>${sonar.coverage.jacoco.xmlReportPaths}</dataFile>
</configuration>
</execution>
</executions>
@@ -208,7 +212,7 @@
<goal>prepare-agent</goal>
</goals>
<configuration>
- <destFile>${sonar.jacoco.reportPath}</destFile>
+ <destFile>${sonar.coverage.jacoco.xmlReportPaths}</destFile>
</configuration>
</execution>
<execution>
@@ -218,7 +222,7 @@
<goal>report</goal>
</goals>
<configuration>
- <dataFile>${sonar.jacoco.reportPath}</dataFile>
+ <dataFile>${sonar.coverage.jacoco.xmlReportPaths}</dataFile>
</configuration>
</execution>
</executions>