From 93756492f3df9b1e0895e840348c6ef0f3805114 Mon Sep 17 00:00:00 2001
From: Deepa_Kumari <deepa_kumari@epam.com>
Date: Fri, 23 Feb 2024 16:24:06 +0530
Subject: [PATCH] adding core code coverage

---
 .gitlab-ci.yml |  1 +
 pom.xml        | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 79e784685..a25bb1a89 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -33,6 +33,7 @@ variables:
   IBM_HELM_CONFIG_PATH: devops/ibm/ibm-storage-config
   IBM_HELM_DEPLOY_PATH: devops/ibm/ibm-storage-deploy
 
+  CORE_BUILD_SUBDIR: storage-core
 include:
   - project: "osdu/platform/ci-cd-pipelines"
     file: "standard-setup.yml"
diff --git a/pom.xml b/pom.xml
index 3a4754f27..09b6f864b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -247,6 +247,28 @@
 					<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
 				</configuration>
 			</plugin>
+			<plugin>
+				<groupId>org.jacoco</groupId>
+				<artifactId>jacoco-maven-plugin</artifactId>
+				<version>0.8.10</version>
+				<configuration>
+					<excludes></excludes>
+				</configuration>
+				<executions>
+					<execution>
+						<goals>
+							<goal>prepare-agent</goal>
+						</goals>
+					</execution>
+					<execution>
+						<id>report</id>
+						<phase>prepare-package</phase>
+						<goals>
+							<goal>report</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
 		</plugins>
 	</build>
 </project>
-- 
GitLab