From 50fc925cea136c442487f208c872044579fb1aac Mon Sep 17 00:00:00 2001 From: John Blum Date: Wed, 29 Aug 2018 22:57:04 -0700 Subject: [PATCH] Update Jenkins build script file to match core Spring Session. --- Jenkinsfile | 41 +++++++++++------------------------------ 1 file changed, 11 insertions(+), 30 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8fa39e6..dc6e77f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,39 +14,20 @@ try { stage('Check') { timeout(time: 10, unit: 'MINUTES') { node { - checkout scm - try { - sh "./gradlew clean check --refresh-dependencies --no-daemon" - } - catch (Exception cause) { - currentBuild.result = 'FAILED: check' - throw cause - } - finally { - junit '**/build/*-results/*.xml' - } + checkout scm + try { + sh './gradlew clean check --no-daemon --refresh-dependencies' + } + catch (e) { + currentBuild.result = 'FAILED: check' + throw e + } + finally { + junit '**/build/test-results/*/*.xml' + } } } } - }, - springio: { - stage('Spring IO') { - timeout(time: 10, unit: 'MINUTES') { - node { - checkout scm - try { - sh "./gradlew clean springIoCheck -PplatformVersion=Cairo-BUILD-SNAPSHOT -PexcludeProjects='**/samples/**' --refresh-dependencies --no-daemon --stacktrace" - } - catch(Exception e) { - currentBuild.result = 'FAILED: springio' - throw e - } - finally { - junit '**/build/spring-io*-results/*.xml' - } - } - } - } } if (currentBuild.result == 'SUCCESS') {