Enable Spring IO Platform checks in (Jenkins) CI build.

This commit is contained in:
John Blum
2018-02-21 10:28:17 -08:00
parent b2866a6399
commit eb2cc9e7ec

30
Jenkinsfile vendored
View File

@@ -15,27 +15,31 @@ try {
node { node {
checkout scm checkout scm
try { try {
sh "./gradlew clean check --refresh-dependencies --no-daemon" sh "./gradlew clean check --refresh-dependencies --no-daemon"
} catch(Exception e) { }
catch (Exception cause) {
currentBuild.result = 'FAILED: check' currentBuild.result = 'FAILED: check'
throw e throw cause
} finally { }
finally {
junit '**/build/*-results/*.xml' junit '**/build/*-results/*.xml'
} }
} }
} }
}, },
sonar: { springio: {
stage('Sonar') { stage('Spring IO') {
node { node {
checkout scm checkout scm
withCredentials([string(credentialsId: 'spring-sonar.login', variable: 'SONAR_LOGIN')]) { try {
try { sh "./gradlew clean springIoCheck -PplatformVersion=Cairo-BUILD-SNAPSHOT -PexcludeProjects='**/samples/**' --refresh-dependencies --no-daemon --stacktrace"
sh "./gradlew clean sonarqube -PexcludeProjects='**/samples/**' -Dsonar.host.url=$SPRING_SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN --refresh-dependencies --no-daemon" }
} catch(Exception e) { catch (Exception cause) {
currentBuild.result = 'FAILED: sonar' currentBuild.result = 'FAILED: springio'
throw e throw cause
} }
finally {
junit '**/build/spring-io*-results/*.xml'
} }
} }
} }