mirror of https://github.com/reiseburo/offtopic
Execute our tests inside of a JDK8 container
This commit is contained in:
parent
d7dcb3c1fd
commit
5918f13928
|
@ -1,27 +1,20 @@
|
||||||
node {
|
#!/usr/bin/env groovy
|
||||||
stage 'Clean workspace'
|
|
||||||
/* Running on a fresh Docker instance makes this redundant, but just in
|
|
||||||
* case the host isn't configured to give us a new Docker image for every
|
|
||||||
* build, make sure we clean things before we do anything
|
|
||||||
*/
|
|
||||||
deleteDir()
|
|
||||||
|
|
||||||
|
node('docker') {
|
||||||
|
stage 'Cleanup workspace'
|
||||||
|
deleteDir()
|
||||||
|
|
||||||
stage 'Checkout source'
|
stage 'Checkout source'
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
||||||
|
|
||||||
stage 'Build and test'
|
stage 'Build and test'
|
||||||
/* if we can't install everything we need for Ruby in less than 15 minutes
|
docker.image('java:8-jdk').inside {
|
||||||
* we might as well just give up
|
timeout(30) {
|
||||||
*/
|
sh './gradlew -iS'
|
||||||
timeout(30) {
|
}
|
||||||
sh './gradlew -iS'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stage 'Capture test results and artifacts'
|
stage 'Capture test results and artifacts'
|
||||||
step([$class: 'JUnitResultArchiver', testResults: 'build/test-results/**/*.xml'])
|
junit 'build/test-results/**/*.xml'
|
||||||
step([$class: 'ArtifactArchiver', artifacts: 'build/libs/*.jar,build/distributions/*.zip', fingerprint: true])
|
archiveArtifacts artifacts: 'build/libs/*.jar,build/distributions/*.zip', fingerprint: true
|
||||||
}
|
}
|
||||||
|
|
||||||
// vim: ft=groovy
|
|
||||||
|
|
Loading…
Reference in New Issue