offtopic/Jenkinsfile

21 lines
455 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env groovy
2016-08-04 05:52:19 +00:00
node('docker') {
stage 'Cleanup workspace'
deleteDir()
2016-08-04 05:52:19 +00:00
stage 'Checkout source'
checkout scm
stage 'Build and test'
docker.image('java:8-jdk').inside {
timeout(30) {
sh './gradlew -iS'
}
2016-08-04 05:52:19 +00:00
}
stage 'Capture test results and artifacts'
junit 'build/test-results/**/*.xml'
archiveArtifacts artifacts: 'build/libs/*.jar,build/distributions/*.zip', fingerprint: true
2016-08-04 05:52:19 +00:00
}