mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
20 lines
No EOL
651 B
Groovy
20 lines
No EOL
651 B
Groovy
// tell Jenkins how to build projects from this repository
|
|
node {
|
|
try {
|
|
|
|
stage 'Checkout'
|
|
checkout scm
|
|
|
|
stage 'Build'
|
|
sh "./gradlew -PuseJenkinsSnapshots=true cleanLocalMavenRepo clean build createLocalMavenRepo --refresh-dependencies --continue"
|
|
archive 'build/maven-repository/**/*.*'
|
|
|
|
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
|
|
} finally {
|
|
step([$class: 'JUnitResultArchiver', testResults: '**/build/test-results/test/*.xml'])
|
|
}
|
|
} |