Enable Spring IO Platform checks in (Jenkins) CI build.
This commit is contained in:
30
Jenkinsfile
vendored
30
Jenkinsfile
vendored
@@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user