mirror of https://github.com/reiseburo/hermann
Merge ab8ccbee6f
into d822ae541a
This commit is contained in:
commit
07bc9f9c84
|
@ -1,33 +1,12 @@
|
|||
#!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"
|
||||
])
|
||||
|
||||
}
|
||||
}
|
||||
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’)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue