Merge pull request #31 from rtyler/jenkinsfile

Add a simple Jenkinsfile
This commit is contained in:
R. Tyler Croy 2016-08-04 00:12:41 -07:00 committed by GitHub
commit adf676369b
1 changed files with 20 additions and 0 deletions

20
Jenkinsfile vendored Normal file
View File

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