More attempts at jacoco exclusions
This commit is contained in:
parent
2d650512bf
commit
3bfc914889
|
@ -58,8 +58,27 @@ node('linux') {
|
|||
step([$class: 'JUnitResultArchiver',
|
||||
testResults: '**/target/surefire-reports/TEST-*.xml'])
|
||||
// Collect up the jacoco execution results
|
||||
def jacocoExcludes =
|
||||
// build tools
|
||||
"**/org/eclipse/jetty/ant/**" +
|
||||
",**/org/eclipse/jetty/maven/**" +
|
||||
",**/org/eclipse/jetty/jspc/**" +
|
||||
// example code / documentation
|
||||
",**/org/eclipse/jetty/embedded/**" +
|
||||
",**/org/eclipse/jetty/asyncrest/**" +
|
||||
",**/org/eclipse/jetty/demo/**" +
|
||||
// special environments / late integrations
|
||||
",**/org/eclipse/jetty/gcloud/**" +
|
||||
",**/org/eclipse/jetty/infinispan/**" +
|
||||
",**/org/eclipse/jetty/osgi/**" +
|
||||
",**/org/eclipse/jetty/spring/**" +
|
||||
",**/org/eclipse/jetty/http/spi/**" +
|
||||
// test classes
|
||||
",**/org/eclipse/jetty/tests/**" +
|
||||
",**/org/eclipse/jetty/test/**";
|
||||
step([$class: 'JacocoPublisher',
|
||||
inclusionPattern: '**/org/eclipse/jetty/**/*.class',
|
||||
exclusionPattern: jacocoExcludes,
|
||||
execPattern: '**/target/jacoco.exec',
|
||||
classPattern: '**/target/classes',
|
||||
sourcePattern: '**/src/main/java'])
|
||||
|
|
21
pom.xml
21
pom.xml
|
@ -175,6 +175,27 @@
|
|||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<version>0.7.7.201606060606</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<!-- build tools -->
|
||||
<exclude>**/org/eclipse/jetty/ant/**</exclude>
|
||||
<exclude>**/org/eclipse/jetty/maven/**</exclude>
|
||||
<exclude>**/org/eclipse/jetty/jspc/**</exclude>
|
||||
<!-- example code / documentation -->
|
||||
<exclude>**/org/eclipse/jetty/embedded/**</exclude>
|
||||
<exclude>**/org/eclipse/jetty/asyncrest/**</exclude>
|
||||
<exclude>**/org/eclipse/jetty/demo/**</exclude>
|
||||
<!-- special environments / late integrations -->
|
||||
<exclude>**/org/eclipse/jetty/gcloud/**</exclude>
|
||||
<exclude>**/org/eclipse/jetty/infinispan/**</exclude>
|
||||
<exclude>**/org/eclipse/jetty/osgi/**</exclude>
|
||||
<exclude>**/org/eclipse/jetty/spring/**</exclude>
|
||||
<exclude>**/org/eclipse/jetty/http/spi/**</exclude>
|
||||
<!-- test classes -->
|
||||
<exclude>**/org/eclipse/jetty/tests/**</exclude>
|
||||
<exclude>**/org/eclipse/jetty/test/**</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>jacoco-initialize</id>
|
||||
|
|
Loading…
Reference in New Issue