Merge pull request #137 from bitwiseman/patch-2

Updated for latest Pipeline fixes
This commit is contained in:
R. Tyler Croy 2016-11-17 13:56:48 -08:00 committed by GitHub
commit f9957b5629
1 changed files with 20 additions and 20 deletions

40
Jenkinsfile vendored
View File

@ -4,30 +4,30 @@
properties([[$class: 'BuildDiscarderProperty',
strategy: [$class: 'LogRotator', numToKeepStr: '10']]])
stage 'Build'
stage ('Build') {
node {
// Checkout
checkout scm
node {
// Checkout
checkout scm
// install required bundles
sh 'bundle install'
// install required bundles
sh 'bundle install'
// build and run tests with coverage
sh 'bundle exec rake build spec'
// build and run tests with coverage
sh 'bundle exec rake build spec'
// Archive the built artifacts
archive (includes: 'pkg/*.gem')
// Archive the built artifacts
archive (includes: 'pkg/*.gem')
// publish html
// "target:" shouldn't be needed, https://issues.jenkins-ci.org/browse/JENKINS-29711.
publishHTML (target: [
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: 'coverage',
reportFiles: 'index.html',
reportName: "RCov Report"
])
// publish html
publishHTML ([
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: 'coverage',
reportFiles: 'index.html',
reportName: "RCov Report"
])
}
}