diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..64a6fc7 --- /dev/null +++ b/Jenkinsfile @@ -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 +}