Enable tests for Java 12. Configure timeouts per stage.
diff --git a/Jenkinsfile b/Jenkinsfile
index 4001e9f..afe2efd 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -20,7 +20,7 @@
agent none
options {
buildDiscarder(logRotator(numToKeepStr: '3'))
- timeout(time: 2, unit: 'HOURS')
+ timeout(time: 8, unit: 'HOURS')
}
triggers {
cron('@weekly')
@@ -28,6 +28,9 @@
}
stages {
stage ('Debug') {
+ options {
+ timeout(time: 1, unit: 'HOURS')
+ }
agent {
docker {
label 'ubuntu'
@@ -45,6 +48,9 @@
}
}
stage ('Build and Test') {
+ options {
+ timeout(time: 2, unit: 'HOURS')
+ }
parallel {
stage ('Linux Java 8') {
agent {
@@ -90,7 +96,7 @@
}
}
steps {
- sh 'mvn -V clean verify -DskipTests'
+ sh 'mvn -V clean verify'
}
post {
always {
@@ -118,6 +124,9 @@
}
}
stage ('Deploy') {
+ options {
+ timeout(time: 2, unit: 'HOURS')
+ }
agent {
label 'ubuntu'
}