Fix jenkins merge job failure in policy-docker 38/137538/1
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>
Wed, 20 Mar 2024 12:38:11 +0000 (12:38 +0000)
committerrameshiyer27 <ramesh.murugan.iyer@est.tech>
Wed, 20 Mar 2024 12:38:11 +0000 (12:38 +0000)
ACM regression tests are getting invoked in the maven build without
policy deployment available. The tests are skipped by default and enabled only
from the regression script.

Issue-ID: POLICY-4946
Change-Id: I476eed2aa015f349fdabb474281f49d62bfea058
Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
csit/run-acm-regression.sh
policy-regression-tests/policy-clamp-regression/pom.xml

index 615e4a9..5f77d21 100755 (executable)
@@ -65,4 +65,4 @@ docker-compose -f docker-compose.yml up -d "policy-clamp-runtime-acm"
 cd ${REGRESSION_FOLDER}
 
 # Invoke the regression test cases
-mvn clean test
\ No newline at end of file
+mvn clean test -Dtests.skip=false
\ No newline at end of file
index da13e15..850c748 100644 (file)
@@ -18,6 +18,7 @@
         <version.cucumber>7.15.0</version.cucumber>
         <version.rest-assured>5.4.0</version.rest-assured>
         <version.junit-platform>1.10.2</version.junit-platform>
+        <tests.skip>true</tests.skip>
     </properties>
 
     <dependencies>
 
     </dependencies>
 
+    <build>
+        <finalName>${project.artifactId}-${project.version}</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-deploy-plugin</artifactId>
+                <configuration>
+                    <skip>true</skip>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <skipTests>${tests.skip}</skipTests>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
 </project>