xtext-core/Jenkinsfile
Christian Dietrich d8664b01a8 added test results to Jenkinsfile
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-06-17 18:31:28 +02:00

20 lines
No EOL
547 B
Groovy

// tell Jenkins how to build projects from this repository
node {
try {
stage 'Checkout'
checkout scm
stage 'Build'
sh "./gradlew build createLocalMavenRepo"
archive 'build/maven-repository/**/*.*'
slackSend "Build Succeeded - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
} catch (e) {
step([$class: 'JUnitResultArchiver', testResults: '**/build/test-results/*.xml'])
slackSend color: 'danger', message: "Build Failed - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
throw e
}
}