File tree Expand file tree Collapse file tree 2 files changed +52
-1
lines changed
Expand file tree Collapse file tree 2 files changed +52
-1
lines changed Original file line number Diff line number Diff line change @@ -331,7 +331,9 @@ def stageBuildClI() {
331331
332332 mvn ' clean test -Dmaven.test.failure.ignore=true'
333333 junit testResults : ' **/target/surefire-reports/TEST-*.xml'
334+ archiveArtifacts artifacts : " **/target/site/jacoco/index.html"
334335}
336+
335337/**
336338 * Stage for installing ArgoCD Operator in the k3d cluster.
337339 * @param clusterName Name of the k3d cluster.
Original file line number Diff line number Diff line change 385385 <version >3.2.5</version >
386386 <configuration >
387387 <!-- Needed to allow unit tests to do reflection, e.g. for SystemLambda's withEnvironmentVariable -->
388- <argLine >--add-opens java.base/java.util=ALL-UNNAMED</argLine >
388+ <argLine >@{argLine} --add-opens java.base/java.util=ALL-UNNAMED</argLine >
389389 <systemProperties >
390390 <property >
391391 <name >ROOT_LOG_LEVEL</name >
399399
400400 </configuration >
401401 </plugin >
402+ <plugin >
403+ <!-- Source: https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin -->
404+ <groupId >org.jacoco</groupId >
405+ <artifactId >jacoco-maven-plugin</artifactId >
406+ <version >0.8.14</version >
407+ <executions >
408+ <execution >
409+ <goals >
410+ <goal >prepare-agent</goal >
411+ </goals >
412+ <phase >initialize</phase >
413+ </execution >
414+ <execution >
415+ <id >report</id >
416+ <phase >test</phase >
417+ <goals >
418+ <goal >report</goal >
419+ </goals >
420+ </execution >
421+ <execution >
422+ <id >jacoco-check</id >
423+ <phase >test</phase >
424+ <goals >
425+ <goal >check</goal >
426+ </goals >
427+ <configuration >
428+ <reportFormats >
429+ <reportFormat >html</reportFormat >
430+ <reportFormat >xml</reportFormat >
431+ </reportFormats >
432+ <rules >
433+ <rule >
434+ <element >PACKAGE</element >
435+ <limits >
436+ <limit >
437+ <counter >LINE</counter >
438+ <value >COVEREDRATIO</value >
439+ </limit >
440+ </limits >
441+ </rule >
442+ </rules >
443+ <excludes >
444+ <exclude >**/*Test.class</exclude >
445+ </excludes >
446+ </configuration >
447+ </execution >
448+ </executions >
449+ </plugin >
450+
402451 <plugin >
403452 <artifactId >maven-jar-plugin</artifactId >
404453 <version >3.2.0</version >
You can’t perform that action at this time.
0 commit comments