Merge branch 'jetty-9.3.x' into jetty-9.4.x
This commit is contained in:
commit
458aebbd01
|
@ -9,8 +9,9 @@ node {
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
stage 'Checkout'
|
stage('Checkout') {
|
||||||
checkout scm
|
checkout scm
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
notifyBuild("Checkout Failure")
|
notifyBuild("Checkout Failure")
|
||||||
throw e
|
throw e
|
||||||
|
@ -18,10 +19,11 @@ node {
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
stage 'Compile'
|
stage('Compile') {
|
||||||
withEnv(mvnEnv) {
|
withEnv(mvnEnv) {
|
||||||
timeout(time: 15, unit: 'MINUTES') {
|
timeout(time: 15, unit: 'MINUTES') {
|
||||||
sh "mvn -B clean install -Dtest=None"
|
sh "mvn -B clean install -Dtest=None"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
|
@ -31,10 +33,11 @@ node {
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
stage 'Javadoc'
|
stage('Javadoc') {
|
||||||
withEnv(mvnEnv) {
|
withEnv(mvnEnv) {
|
||||||
timeout(time: 15, unit: 'MINUTES') {
|
timeout(time: 15, unit: 'MINUTES') {
|
||||||
sh "mvn -B javadoc:javadoc"
|
sh "mvn -B javadoc:javadoc"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
|
@ -44,31 +47,51 @@ node {
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
stage 'Test'
|
stage('Test') {
|
||||||
withEnv(mvnEnv) {
|
withEnv(mvnEnv) {
|
||||||
timeout(time: 60, unit: 'MINUTES') {
|
timeout(time: 60, unit: 'MINUTES') {
|
||||||
// Run test phase / ignore test failures
|
// Run test phase / ignore test failures
|
||||||
sh "mvn -B install -Dmaven.test.failure.ignore=true"
|
sh "mvn -B install -Dmaven.test.failure.ignore=true"
|
||||||
// Report failures in the jenkins UI
|
// Report failures in the jenkins UI
|
||||||
step([$class: 'JUnitResultArchiver',
|
step([$class: 'JUnitResultArchiver',
|
||||||
testResults: '**/target/surefire-reports/TEST-*.xml'])
|
testResults: '**/target/surefire-reports/TEST-*.xml'])
|
||||||
// Collect up the jacoco execution results
|
// Collect up the jacoco execution results
|
||||||
step([$class: 'JacocoPublisher',
|
def jacocoExcludes =
|
||||||
inclusionPattern: "**/org/eclipse/jetty/**/*.class",
|
// build tools
|
||||||
execPattern: '**/target/jacoco.exec',
|
"**/org/eclipse/jetty/ant/**" +
|
||||||
classPattern: '**/target/classes',
|
",**/org/eclipse/jetty/maven/**" +
|
||||||
sourcePattern: '**/src/main/java'])
|
",**/org/eclipse/jetty/jspc/**" +
|
||||||
// Report on Maven and Javadoc warnings
|
// example code / documentation
|
||||||
step([$class: 'WarningsPublisher',
|
",**/org/eclipse/jetty/embedded/**" +
|
||||||
consoleParsers: [
|
",**/org/eclipse/jetty/asyncrest/**" +
|
||||||
[parserName: 'Maven'],
|
",**/org/eclipse/jetty/demo/**" +
|
||||||
[parserName: 'JavaDoc'],
|
// special environments / late integrations
|
||||||
[parserName: 'JavaC']
|
",**/org/eclipse/jetty/gcloud/**" +
|
||||||
]])
|
",**/org/eclipse/jetty/infinispan/**" +
|
||||||
}
|
",**/org/eclipse/jetty/osgi/**" +
|
||||||
if(isUnstable())
|
",**/org/eclipse/jetty/spring/**" +
|
||||||
{
|
",**/org/eclipse/jetty/http/spi/**" +
|
||||||
notifyBuild("Unstable / Test Errors")
|
// 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'])
|
||||||
|
// Report on Maven and Javadoc warnings
|
||||||
|
step([$class: 'WarningsPublisher',
|
||||||
|
consoleParsers: [
|
||||||
|
[parserName: 'Maven'],
|
||||||
|
[parserName: 'JavaDoc'],
|
||||||
|
[parserName: 'JavaC']
|
||||||
|
]])
|
||||||
|
}
|
||||||
|
if(isUnstable())
|
||||||
|
{
|
||||||
|
notifyBuild("Unstable / Test Errors")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
|
|
|
@ -30,6 +30,13 @@
|
||||||
</instructions>
|
</instructions>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jacoco</groupId>
|
||||||
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,13 @@
|
||||||
<useSystemClassLoader>false</useSystemClassLoader>
|
<useSystemClassLoader>false</useSystemClassLoader>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jacoco</groupId>
|
||||||
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,13 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jacoco</groupId>
|
||||||
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
|
@ -52,6 +52,13 @@
|
||||||
</instructions>
|
</instructions>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jacoco</groupId>
|
||||||
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -34,6 +34,13 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jacoco</groupId>
|
||||||
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
|
@ -35,6 +35,13 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jacoco</groupId>
|
||||||
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
|
@ -70,6 +70,13 @@
|
||||||
</sourceExcludes>
|
</sourceExcludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jacoco</groupId>
|
||||||
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
|
|
|
@ -17,6 +17,13 @@
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>install</defaultGoal>
|
<defaultGoal>install</defaultGoal>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jacoco</groupId>
|
||||||
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
31
pom.xml
31
pom.xml
|
@ -151,6 +151,27 @@
|
||||||
<groupId>org.jacoco</groupId>
|
<groupId>org.jacoco</groupId>
|
||||||
<artifactId>jacoco-maven-plugin</artifactId>
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
<version>0.7.7.201606060606</version>
|
<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>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>jacoco-initialize</id>
|
<id>jacoco-initialize</id>
|
||||||
|
@ -165,6 +186,16 @@
|
||||||
<goals>
|
<goals>
|
||||||
<goal>report</goal>
|
<goal>report</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<!-- list of classes that you want to see in the report.
|
||||||
|
Specify a narrow list of multi-module project
|
||||||
|
classes you want to see here.
|
||||||
|
This is useful to remove 3rd party library classes
|
||||||
|
from the report. -->
|
||||||
|
<includes>
|
||||||
|
<include>**/org/eclipse/jetty/**</include>
|
||||||
|
</includes>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -21,6 +21,13 @@
|
||||||
<skip>true</skip>
|
<skip>true</skip>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jacoco</groupId>
|
||||||
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<modules>
|
<modules>
|
||||||
|
|
Loading…
Reference in New Issue