aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio David Gasparini <claudio.gasparini@pantheon.tech>2021-01-13 17:42:25 +0100
committerClaudio David Gasparini <claudio.gasparini@pantheon.tech>2021-01-13 17:46:33 +0100
commitdc6f81cf4ce3c42e711f1cd0c6f50000d4e0101d (patch)
tree53186ac81312f4faec2a8aa32c55a21df2197781
parent68e122191dbf18619e348667980e615c7f16b402 (diff)
Include aggregate xml report on sonar coverage
Issue-ID: CPS-87 Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I50de5df1bc79ff22c90a5cbe2f1b143164c8abea
-rwxr-xr-xcps-parent/pom.xml1
-rwxr-xr-xcps-rest/pom.xml4
-rw-r--r--cps-ri/pom.xml5
-rw-r--r--cps-service/pom.xml4
4 files changed, 14 insertions, 0 deletions
diff --git a/cps-parent/pom.xml b/cps-parent/pom.xml
index 50cca04b55..b42675199b 100755
--- a/cps-parent/pom.xml
+++ b/cps-parent/pom.xml
@@ -26,6 +26,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
<repository.name>nexus3.onap.org:10001/onap/cps-service</repository.name>
+ <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-aggregate/jacoco.xml,${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<spotbugs-maven-plugin.version>4.1.3</spotbugs-maven-plugin.version>
<spring-boot-maven-plugin.version>2.3.3.RELEASE</spring-boot-maven-plugin.version>
<spotbugs.slf4j.version>1.8.0-beta4</spotbugs.slf4j.version>
diff --git a/cps-rest/pom.xml b/cps-rest/pom.xml
index f2f643ac23..4d4e091e07 100755
--- a/cps-rest/pom.xml
+++ b/cps-rest/pom.xml
@@ -11,6 +11,10 @@
<artifactId>cps-rest</artifactId>
+ <properties>
+ <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-aggregate/jacoco.xml,${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
+ </properties>
+
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
diff --git a/cps-ri/pom.xml b/cps-ri/pom.xml
index 89b19d5ffa..a43e0cb0ec 100644
--- a/cps-ri/pom.xml
+++ b/cps-ri/pom.xml
@@ -8,8 +8,13 @@
<version>0.0.1-SNAPSHOT</version>
<relativePath>../cps-parent/pom.xml</relativePath>
</parent>
+
<artifactId>cps-ri</artifactId>
+ <properties>
+ <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-aggregate/jacoco.xml,${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
+ </properties>
+
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
diff --git a/cps-service/pom.xml b/cps-service/pom.xml
index 642d76451d..287e2a74e3 100644
--- a/cps-service/pom.xml
+++ b/cps-service/pom.xml
@@ -11,6 +11,10 @@
<artifactId>cps-service</artifactId>
+ <properties>
+ <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-aggregate/jacoco.xml,${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>