From b459c4118beb1ddd5e194a229488b9b7ebc883cd Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Wed, 19 Oct 2016 13:15:39 -0700 Subject: [PATCH] Using new recommended timeout() syntax --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2f70108815d..b45d3fb5216 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,7 @@ node('linux') { { stage 'Compile' withEnv(mvnEnv) { - timeout(15) { + timeout(time: 15, unit: 'MINUTES') { sh "mvn -B clean install -Dtest=None" } } @@ -35,7 +35,7 @@ node('linux') { { stage 'Javadoc' withEnv(mvnEnv) { - timeout(15) { + timeout(time: 15, unit: 'MINUTES') { sh "mvn -B javadoc:javadoc" } } @@ -48,7 +48,7 @@ node('linux') { { stage 'Test' withEnv(mvnEnv) { - timeout(60) { + timeout(time: 60, unit: 'MINUTES') { // Run test phase / ignore test failures sh "mvn -B install -Dmaven.test.failure.ignore=true" // Report failures in the jenkins UI