Compare commits

...

4 Commits

Author SHA1 Message Date
R. Tyler Croy 148359d816
Pretty much any node is going to have Java, because Jenkins, duh 2016-08-03 21:22:45 -07:00
R. Tyler Croy 0bac696847
Archive test results, etc 2015-12-26 21:51:54 -08:00
R. Tyler Croy dc1cfab361 Merge pull request #38 from reiseburo/ci
Add a Jenkinsfile for building
2015-12-26 21:46:07 -08:00
R. Tyler Croy 324b3faba7
Add a Jenkinsfile for building 2015-12-26 21:32:16 -08:00
1 changed files with 39 additions and 0 deletions

39
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,39 @@
/*
* This is a multibranch workflow file for defining how this project should be
* built, tested and deployed
*/
node {
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()
stage 'Checkout source'
/*
* Represents the SCM configuration in a "Workflow from SCM" project build. Use checkout
* scm to check out sources matching Jenkinsfile with the SCM details from
* the build that is executing this Jenkinsfile.
*
* when not in multibranch: https://issues.jenkins-ci.org/browse/JENKINS-31386
*/
checkout scm
stage 'Build and test'
/* if we can't install everything we need for Ruby in less than 15 minutes
* we might as well just give up
*/
timeout(30) {
sh './gradlew -iS'
}
stage 'Capture test results and artifacts'
step([$class: 'JUnitResultArchiver', testResults: 'build/test-results/**/*.xml'])
step([$class: 'ArtifactArchiver', artifacts: 'build/libs/*.jar', fingerprint: true])
}
// vim: ft=groovy