From 4e8ae8d9d4066f31c88887c0a34b5a76d571bbb5 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Thu, 22 Jun 2017 13:20:21 -0500 Subject: [PATCH] Revert "Deploy Without Checks for Spring IO" This reverts commit 8c6810c6dda888ca02847e8043857362d10b1b5d. --- Jenkinsfile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index bcfcb290..788498b6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,6 +9,50 @@ def SUCCESS = hudson.model.Result.SUCCESS.toString() currentBuild.result = SUCCESS try { + parallel check: { + stage('Check') { + node { + checkout scm + try { + sh "./gradlew clean check --refresh-dependencies --no-daemon" + } catch(Exception e) { + currentBuild.result = 'FAILED: check' + throw e + } finally { + junit '**/build/*-results/*.xml' + } + } + } + }, + sonar: { + stage('Sonar') { + node { + checkout scm + withCredentials([string(credentialsId: 'spring-sonar.login', variable: 'SONAR_LOGIN')]) { + try { + sh "./gradlew clean sonarqube -PexcludeProjects='**/samples/**' -Dsonar.host.url=$SPRING_SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN --refresh-dependencies --no-daemon" + } catch(Exception e) { + currentBuild.result = 'FAILED: sonar' + throw e + } + } + } + } + }, + springio: { + stage('Spring IO') { + node { + checkout scm + try { + sh "./gradlew clean springIoCheck -PplatformVersion=Cairo-BUILD-SNAPSHOT -PexcludeProjects='**/samples/**' --refresh-dependencies --no-daemon --stacktrace" + } catch(Exception e) { + throw e + } finally { + junit '**/build/spring-io*-results/*.xml' + } + } + } + } if(currentBuild.result == 'SUCCESS') { parallel artifactory: {