mirror of https://github.com/reiseburo/hermann
Updated for latest Pipeline fixes
JENKINS-29711 was fixed and stage step now uses curly braces
This commit is contained in:
parent
68515effc7
commit
35eba84dc6
|
@ -4,30 +4,30 @@
|
||||||
properties([[$class: 'BuildDiscarderProperty',
|
properties([[$class: 'BuildDiscarderProperty',
|
||||||
strategy: [$class: 'LogRotator', numToKeepStr: '10']]])
|
strategy: [$class: 'LogRotator', numToKeepStr: '10']]])
|
||||||
|
|
||||||
stage 'Build'
|
stage ('Build') {
|
||||||
|
|
||||||
node {
|
node {
|
||||||
// Checkout
|
// Checkout
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
||||||
// install required bundles
|
// install required bundles
|
||||||
sh 'bundle install'
|
sh 'bundle install'
|
||||||
|
|
||||||
// build and run tests with coverage
|
// build and run tests with coverage
|
||||||
sh 'bundle exec rake build spec'
|
sh 'bundle exec rake build spec'
|
||||||
|
|
||||||
// Archive the built artifacts
|
// Archive the built artifacts
|
||||||
archive (includes: 'pkg/*.gem')
|
archive (includes: 'pkg/*.gem')
|
||||||
|
|
||||||
// publish html
|
// publish html
|
||||||
// "target:" shouldn't be needed, https://issues.jenkins-ci.org/browse/JENKINS-29711.
|
publishHTML ([
|
||||||
publishHTML (target: [
|
allowMissing: false,
|
||||||
allowMissing: false,
|
alwaysLinkToLastBuild: false,
|
||||||
alwaysLinkToLastBuild: false,
|
keepAll: true,
|
||||||
keepAll: true,
|
reportDir: 'coverage',
|
||||||
reportDir: 'coverage',
|
reportFiles: 'index.html',
|
||||||
reportFiles: 'index.html',
|
reportName: "RCov Report"
|
||||||
reportName: "RCov Report"
|
])
|
||||||
])
|
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue