I'm trying to integrate jacoco with jenkins. For now, whenever there's a push, jenkins detects and runs the jenkins file, where I have a stage for JaCoCo, that looks as follow and working:
if(runJaCoCo){
stage('JaCoCo'){
jacoco(
)
}
}
My pom.xml looks as follow:
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<excludes>
<exclude>com/Abc/Bcd/Cde/*</exclude>
</excludes>
</configuration>
</execution>
<execution>
<id>default-report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
To simplify, my problem is that whenever I open the report in Jenkins, instead of not showing the package, it shows 0% for all files under Cde, which is making the report look worst than before.
I'm expecting that the report doesn't show at all the packages, instead of showing 0% for them.