Skip to content
Permalink
Browse files
Enable tests for Java 12. Configure timeouts per stage.
  • Loading branch information
seelmann committed Apr 10, 2019
1 parent 5bb4a03 commit 56b69ba7ff927b2efb711920b6255ab11932ee64
Showing 1 changed file with 11 additions and 2 deletions.
@@ -20,14 +20,17 @@ pipeline {
agent none
options {
buildDiscarder(logRotator(numToKeepStr: '3'))
timeout(time: 2, unit: 'HOURS')
timeout(time: 8, unit: 'HOURS')
}
triggers {
cron('@weekly')
pollSCM('@daily')
}
stages {
stage ('Debug') {
options {
timeout(time: 1, unit: 'HOURS')
}
agent {
docker {
label 'ubuntu'
@@ -45,6 +48,9 @@ pipeline {
}
}
stage ('Build and Test') {
options {
timeout(time: 2, unit: 'HOURS')
}
parallel {
stage ('Linux Java 8') {
agent {
@@ -90,7 +96,7 @@ pipeline {
}
}
steps {
sh 'mvn -V clean verify -DskipTests'
sh 'mvn -V clean verify'
}
post {
always {
@@ -118,6 +124,9 @@ pipeline {
}
}
stage ('Deploy') {
options {
timeout(time: 2, unit: 'HOURS')
}
agent {
label 'ubuntu'
}

0 comments on commit 56b69ba

Please sign in to comment.