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: {