mirror of https://github.com/reiseburo/hermann
34 lines
688 B
Groovy
34 lines
688 B
Groovy
#!groovy
|
|
|
|
/* Only keep the 10 most recent builds. */
|
|
properties([[$class: 'BuildDiscarderProperty',
|
|
strategy: [$class: 'LogRotator', numToKeepStr: '10']]])
|
|
|
|
stage ('Build') {
|
|
|
|
node {
|
|
// Checkout
|
|
checkout scm
|
|
|
|
// install required bundles
|
|
sh 'bundle install'
|
|
|
|
// build and run tests with coverage
|
|
sh 'bundle exec rake build spec'
|
|
|
|
// Archive the built artifacts
|
|
archive (includes: 'pkg/*.gem')
|
|
|
|
// publish html
|
|
publishHTML ([
|
|
allowMissing: false,
|
|
alwaysLinkToLastBuild: false,
|
|
keepAll: true,
|
|
reportDir: 'coverage',
|
|
reportFiles: 'index.html',
|
|
reportName: "RCov Report"
|
|
])
|
|
|
|
}
|
|
}
|