2016-06-14 13:21:00 +00:00
|
|
|
// tell Jenkins how to build projects from this repository
|
|
|
|
node {
|
2016-06-16 13:41:48 +00:00
|
|
|
try {
|
|
|
|
|
|
|
|
stage 'Checkout'
|
|
|
|
checkout scm
|
|
|
|
|
|
|
|
stage 'Build'
|
2016-07-20 09:46:34 +00:00
|
|
|
sh "./gradlew -PuseJenkinsSnapshots=true cleanLocalMavenRepo clean build createLocalMavenRepo --refresh-dependencies --continue"
|
2016-06-17 09:52:09 +00:00
|
|
|
archive 'build/maven-repository/**/*.*'
|
2016-06-16 13:41:48 +00:00
|
|
|
|
|
|
|
slackSend "Build Succeeded - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
slackSend color: 'danger', message: "Build Failed - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
|
|
throw e
|
2016-06-19 10:48:14 +00:00
|
|
|
} finally {
|
2016-11-18 08:21:41 +00:00
|
|
|
step([$class: 'JUnitResultArchiver', testResults: '**/build/test-results/test/*.xml'])
|
2016-06-16 13:41:48 +00:00
|
|
|
}
|
2016-06-14 13:21:00 +00:00
|
|
|
}
|