Jetty 12.0.x use coverage report rather than the non anymore maintained jacoco plugin (#10864)
* use maintained coverage (jacoco) plugin from jenkins --------- Signed-off-by: Olivier Lamy <olamy@apache.org>
This commit is contained in:
parent
fd1c1e3c9b
commit
8ae9990309
|
@ -31,31 +31,11 @@ pipeline {
|
||||||
timeout( time: 180, unit: 'MINUTES' ) {
|
timeout( time: 180, unit: 'MINUTES' ) {
|
||||||
checkout scm
|
checkout scm
|
||||||
mavenBuild( "jdk17", "clean install -Perrorprone", "maven3") // javadoc:javadoc
|
mavenBuild( "jdk17", "clean install -Perrorprone", "maven3") // javadoc:javadoc
|
||||||
// Collect up the jacoco execution results (only on main build)
|
recordIssues id: "analysis-jdk17", name: "Static Analysis jdk17", aggregatingResults: true, enabledForFailure: true,
|
||||||
jacoco inclusionPattern: '**/org/eclipse/jetty/**/*.class',
|
|
||||||
exclusionPattern: '' +
|
|
||||||
// build tools
|
|
||||||
'**/org/eclipse/jetty/ant/**' +
|
|
||||||
',*/org/eclipse/jetty/maven/its/**' +
|
|
||||||
',**/org/eclipse/jetty/its/**' +
|
|
||||||
// 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/http/spi/**' +
|
|
||||||
// test classes
|
|
||||||
',**/org/eclipse/jetty/tests/**' +
|
|
||||||
',**/org/eclipse/jetty/test/**',
|
|
||||||
execPattern: '**/target/jacoco.exec',
|
|
||||||
classPattern: '**/target/classes',
|
|
||||||
sourcePattern: '**/src/main/java'
|
|
||||||
recordIssues id: "jdk17", name: "Static Analysis jdk17", aggregatingResults: true, enabledForFailure: true,
|
|
||||||
tools: [mavenConsole(), java(), checkStyle(), errorProne(), spotBugs(), javaDoc()],
|
tools: [mavenConsole(), java(), checkStyle(), errorProne(), spotBugs(), javaDoc()],
|
||||||
skipPublishingChecks: true, blameDisabled: true
|
skipPublishingChecks: true, blameDisabled: true
|
||||||
|
recordCoverage id: "coverage-jdk17", name: "Coverage jdk17", tools: [[parser: 'JACOCO']], sourceCodeRetention: 'MODIFIED',
|
||||||
|
sourceDirectories: [[path: 'src/main/java'], [path: 'target/generated-sources/ee8']]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1
pom.xml
1
pom.xml
|
@ -1980,6 +1980,7 @@
|
||||||
<excludes>
|
<excludes>
|
||||||
<!-- build tools -->
|
<!-- build tools -->
|
||||||
<exclude>**/org/eclipse/jetty/ant/**</exclude>
|
<exclude>**/org/eclipse/jetty/ant/**</exclude>
|
||||||
|
<exclude>*/org/eclipse/jetty/maven/its/**</exclude>
|
||||||
<!-- example code / documentation -->
|
<!-- example code / documentation -->
|
||||||
<exclude>**/org/eclipse/jetty/embedded/**</exclude>
|
<exclude>**/org/eclipse/jetty/embedded/**</exclude>
|
||||||
<exclude>**/org/eclipse/jetty/asyncrest/**</exclude>
|
<exclude>**/org/eclipse/jetty/asyncrest/**</exclude>
|
||||||
|
|
Loading…
Reference in New Issue