mirror of https://github.com/reiseburo/offtopic
Merge pull request #31 from rtyler/jenkinsfile
Add a simple Jenkinsfile
This commit is contained in:
commit
adf676369b
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue