Added build timeouts.
@@ -16,14 +16,17 @@ node {
stage('Build JDK 7') {
withEnv(mvnEnv7) {
+ timeout(time: 1, unit: 'HOURS') {
sh "mvn -B clean install -Dmaven.test.failure.ignore=true"
// Report failures in the jenkins UI
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
}
}
+ }
stage('Build JDK 8') {
withEnv(mvnEnv8) {
+ timeout(time: 1, unit: 'HOURS') {
sh "mvn -B clean install -Dmaven.test.failure.ignore=true"
// Report failures in the jenkins UI.
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
@@ -35,36 +38,33 @@ node {
sourcePattern: '**/src/main/java'])
}
}
+ }
stage('Build JDK 8 - Jetty 9.3.x') {
withEnv(mvnEnv8) {
+ timeout(time: 1, unit: 'HOURS') {
sh "mvn -B clean install -Dmaven.test.failure.ignore=true -Djetty-version=9.3.20.v20170531"
// Report failures in the jenkins UI
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
}
}
+ }
stage('Build JDK 8 - Jetty 9.4.x') {
withEnv(mvnEnv8) {
+ timeout(time: 1, unit: 'HOURS') {
sh "mvn -B clean install -Dmaven.test.failure.ignore=true -Djetty-version=9.4.6.v20170531"
// Report failures in the jenkins UI
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
}
}
+ }
stage('Javadoc') {
withEnv(mvnEnv8) {
+ timeout(time: 5, unit: 'MINUTES') {
sh "mvn -B javadoc:javadoc"
}
}
-
- /*
- stage('Documentation') {
- dir("cometd-documentation") {
- withEnv(mvnEnv8) {
- sh "mvn clean install"
- }
- }
}
- */
}
