This commit is contained in:
matze_01 2022-08-05 09:28:57 -07:00 committed by GitHub
commit 07bc9f9c84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 33 deletions

45
Jenkinsfile vendored
View File

@ -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)
}
}